How do I change the background of SMF?

Started by Cybex, November 08, 2004, 02:29:41 PM

Previous topic - Next topic

Cybex

How do I change the background of SMF? It's currently white, but I want it changed to another color. What file do I need to edit for this?

Owdy

style.css:

/* This is the white header area where the title, menu bars, and header boxes are. */
#headerarea
{
background-color: white;
border-bottom: 1px solid gray;
}
/* This is the main area of the forum, the part that's gray. */
#bodyarea
{
background-color: #D4D4D4;
}
/* And this is the bottom, where the copyright is, etc. */
#footerarea
{
color: black;
background-color: white;
border-top: 1px solid gray;
}
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Cybex


Owdy

Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Cybex

Eh, the classic theme (the one I am using) doesn't have this in it's style.css. I have been searching for a similar option, but couldn't find it... Suggestions?

Owdy

find:

/* By default (td, body..) use Verdana in black. */
body, td
{
color: #000000;
font-size: small;
font-family: verdana, sans-serif;
}


replace:



td
{
color: #000000;
font-size: small;
font-family: verdana, sans-serif;
}

body
{
color: #000000;
font-size: small;
font-family: verdana, sans-serif;
         background-color:red;
}




then, index.template:  find:

<table cellspacing="0" cellpadding="10" border="0" align="center" width="95%" class="tborder">
<tr><td valign="top" bgcolor="#ffffff">';


replace:

<table cellspacing="0" cellpadding="10" border="0" align="center" width="95%" class="tborder">
<tr><td valign="top">';
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Cybex


trenchteam

Im assuming this works for background images as well>?

Kirby

for background images, use:

background-image: url(insertimageurl);


instead of:

background-color:red;

telecrank

#9
this was pretty useful for me as well. I spent the better part of a day tryin to figure out how to change the background color. I was wondering if someone could help me out with the a few cells on the SMF classic forum. here's my site, http://telecrank.com/forum/index.php [nofollow] I want to change the blue cells to black. Can anyone help me?

A.M.A

Really sorry .. real life is demanding my full attention .. will be back soon hopefully :)

telecrank

#11
lol, yeah... after I posted that I looked at the others and saw that you had already covered that. Stupid me for now reading the whole thing.

by the way, does anyone know how to get rid of the SMF banner at the top?

Ok, nevermind... I figured it out:)

Advertisement: