/    Sign up×
Community /Pin to ProfileBookmark

Why is my Text still Bold

— 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.
๐Ÿ˜ฎ

to post a comment
CSS

10 Comments(s) โ†ด

Copy linkTweet thisAlerts:
@NevermoreApr 30.2005 โ€”ย 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.
Copy linkTweet thisAlerts:
@CharlesApr 30.2005 โ€”ย 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.
Copy linkTweet thisAlerts:
@delsolsauthorApr 30.2005 โ€”ย Thanks.

It is [I]Lighter[/I] instead of [I]Light[/I].

But is the semicolon required at the end of the final value?

I was using Joe Burn's css tutorial @ htmlgoodies.com

[URL=http://www.htmlgoodies.com/beyond/css/article.php/3470371]http://www.htmlgoodies.com/beyond/css/article.php/3470371[/URL]

He really should correct that...

thanks again

dels
Copy linkTweet thisAlerts:
@CharlesApr 30.2005 โ€”ย 1) Do not use the HTML Goodies "tutorial".

2) Do use the [url=http://www.w3.org/TR/CSS2/]CSS2 Specification[/url].
Copy linkTweet thisAlerts:
@SanimApr 30.2005 โ€”ย [CODE]
<style type="text/css">
<!--
H2 {
font-size: 10pt;
color: #EBF4DF;
font-family: arial;
font-style: normal;
font-weight: [B]normal[/B];
}
-->
</style>
[/CODE]
Copy linkTweet thisAlerts:
@delsolsauthorApr 30.2005 โ€”ย [CODE]
font-weight: [B]normal[/B];
[/CODE]
[/QUOTE]


[B][I]Thanks, that works also.[/I][/B]
Copy linkTweet thisAlerts:
@SanimApr 30.2005 โ€”ย 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. ?
Copy linkTweet thisAlerts:
@NevermoreApr 30.2005 โ€”ย 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.[/QUOTE]

It's a good habit to get into, though, especially if you intend to go into programming.
Copy linkTweet thisAlerts:
@delsolsauthorApr 30.2005 โ€”ย 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?
Copy linkTweet thisAlerts:
@SanimApr 30.2005 โ€”ย 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 [I]did[/I] work in IE5, but somehow, it just doesn't work anymore on it.
ร—

Success!

Help @delsols spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 โ€” BETA 5.19,
whats_new: community page,
up_next: more Davinciโ€ข003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinciโ€ข003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...