Why is my Text still Bold

admin

Administrator
Staff member
-- this is my .css entry --

H2 {font-size: 10pt; color: #EBF4DF; font-family: arial; font-style: normal; font-weight: light}

Why can't I un-bold my H2 text.
There is nothing in the html keeping it bold.
:eek:If I remember correctly, it's 'lighter' not light; it's also missing a semicolon after the value. If that doesn't help, please post the rest of yor CSS and the HTML surrounding your heading.You'll find that not all of the CSS spec is implimented by a certain Microsoft product. But you will find that the last semi-colon isn't required or necessary.Thanks.
It is Lighter instead of Light.
But is the semicolon required at the end of the final value?

I was using Joe Burn's css tutorial @ htmlgoodies.com
<!-- m --><a class="postlink" href="http://www.htmlgoodies.com/beyond/css/article.php/3470371">http://www.htmlgoodies.com/beyond/css/a ... hp/3470371</a><!-- m -->
He really should correct that...
thanks again
dels1) Do not use the HTML Goodies "tutorial".

2) Do use the CSS2 Specification (<!-- m --><a class="postlink" href="http://www.w3.org/TR/CSS2/">http://www.w3.org/TR/CSS2/</a><!-- m -->).<style type="text/css">
<!--
H2 {
font-size: 10pt;
color: #EBF4DF;
font-family: arial;
font-style: normal;
font-weight: normal;
}
-->
</style>font-weight: normal;


Thanks, that works also.I have Dreamweaver MX 2004, so it shows you all the things you can apply to something. When you start typing after you've put the { in the CSS element you're styling, a menu comes up and shows all the possible things you could put (example: font-family). Once you've put the colon after font-family (or any definition), it shows you the things you can put for the value of that element (example: Arial, Helvetica, sans-serif). It's really nice. :DYou'll find that not all of the CSS spec is implimented by a certain Microsoft product. But you will find that the last semi-colon isn't required or necessary.

It's a good habit to get into, though, especially if you intend to go into programming.I visited your site Sanim. I noticed you wrote that it works in Firefox. I'm told mine does not work in Firefox. Does Dreamweaver do that as well?It looks like it works on FireFox for Mac. Dreamweaver doesn't magically make it work in all browsers, no. That depends on how good of a programmer you are. My site is messed up in IE5 for Mac and Opera 7 for Mac. That annoys me, since it did work in IE5, but somehow, it just doesn't work anymore on it.
 
Back
Top