Customizing SMF > SMF Coding Discussion

Background Colour

(1/3) > >>

DeadlyDemon:
Hello
I was trying to change the theme of my SMF beta 5 forum. but i annot find where i have to change it from. I looked in style.css and changed the part that says :


--- Code: ---body
{
background-color: white;
margin: 0px;
padding: 0px;
}code]
--- End code ---

but the changes do not come up on my forum. so where do i change it from?

Owdy:
Do you modify default or classic theme?

DeadlyDemon:
im trying 2 modify the defult 1

Owdy:
Okay. Find in index.template.php :


--- Code: ---// The main content should go here.  A table is used because IE 6 just can't handle a div.
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
<td style="background-color: #D4D4D4; padding: 1ex 20px 2ex 20px;">';

--- End code ---
...and change that "background-color"

Oldiesmann:
That just changes the background color for the forum - ie, the color of everything not part of the forum. To change the colors of other things, you'll need to change titlebg (background color for title bars), catbg (background color for category bars), windowbg and windowbg 2 (alternating background colors for posts).

Navigation

[0] Message Index

[#] Next page

Go to full version