View Full Version : How can i add third alternate style ?? (alt3)
Hi all, i want to make another style to the postbit table. For example, i want to change background of postbit. But if i do this in styles options in adminp, forumhome table backgrounds are also changed. Because the tables are using alt1. So, how can i add alt3 ??
Kirk Y
11-04-2007, 07:03 PM
Not sure I'm following you, but if you want to add a new CSS class, you can go to the bottom of the Main CSS Options page to "Additional CSS Definitions" and add the following:
.myclass
{
background: black;
color: #898989;
border: 1px solid red;
}
Thank you.
<td class="alt2" id="td_post_$post[postid]" style="border-right: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]">
How can i change this to
background-image: url(/images/firstalt1.gif)
Because, I dont want to change alt2 in style settings.
Freesteyelz
11-04-2007, 08:29 PM
Replace:
<td class="alt2" id="td_post_$post[postid]" style="border-right: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]">
With:
<td class="alt2" id="td_post_$post[postid]" style="border-right: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor];background:#000000 url() repeat-x top left">
Change #000000 to whatever background color you want. Change repeat to either: no-repeat, repeat (both vertical and horizontal), repeat-y (vertical), repeat-x (horizontal)
Freesteyelz, very good info thanks a lot !
Freesteyelz
11-04-2007, 08:35 PM
I hope it works out for you. :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.