View Full Version : Style Sheet


unbeknownst
10-01-2005, 01:17 PM
Okay, I have figured out most of my stylesheet...but I am using div headers...how can I change them? The code is (for the DIV headers)

<div class="header"> I think this one is right... </div>

dolce shanti
10-01-2005, 02:19 PM
You could just include the stylesheet for that div inside of it's code...

<div style="font-color:color; background-color:color;">I think this one is right... </div>

Just add whatever you need in the "style" part of it :)

unbeknownst
10-01-2005, 02:40 PM
I'll try that. I had figured out a different way a few days ago, but I had lost the other code... :rant: :mad:

unbeknownst
10-01-2005, 02:47 PM
Okay, I have one problem...I want the border to have a color too and I added to it and it won't work

dolce shanti
10-01-2005, 03:21 PM
Did you try something like this?

<div style="border:sold; border-width:thin; bordercolor:color;">I think this one is right... </div>

Monkey Bizzle
10-01-2005, 03:26 PM
Since you are using class="header" then you don't need to do the whole stle="" thing... Just add this to your style sheet:

.header
{color: #000000;
background-color: #000000;
border: #px solid #000000;}

change the 000000 to the colors that you want, and change the # to the width of the border and change solid to the type that you want.

if you do decide to do it the way that singingshanti suggested, keep in mind that it's color, not font-color and that border code that she gave is incorrect...

dolce shanti
10-01-2005, 03:27 PM
Oops...thanks for correcting me, Monkey Bizzle :)

unbeknownst
10-02-2005, 01:20 AM
Thank you, it worked!

Monkey Bizzle
10-02-2005, 02:22 AM
Thank you, it worked!

You're welcome =)