the CSS blues (Full Version)

All Forums >> [Web Development] >> Cascading Style Sheets



Message


J-man -> the CSS blues (10/30/2003 17:07:23)

For the life of me, I can't figure out what's wrong here:

Okay, I have this line at the top of my HTML page:

Code:
<link REL=STYLESHEET HREF=/standard.css TYPE=text/css>


This contains:

Code:
.small
{
font-family: verdana,arial,geneva,sans-serif;
font-size: 10pt;
line-height: 1.25;
}


Now in my code, I've got this:

Code:
<div class="small">My text</div>


I also tried this:

Code:
<div class="small" style="small">My Text</div>



Both lines render perfectly in IE 6.0, 5.5 and Netscape 4.7, but wont render in NS 7.0, it's giving me like <H2> fonts. Can anyone see where I'm wrong?




bobby -> RE: the CSS blues (10/30/2003 17:48:00)

Just a guess, but try using some other unit of measure, if I remember right Netscape doesn't like to render points.




c1sissy -> RE: the CSS blues (10/30/2003 17:50:16)

Hey J-man!

If you have your link set up as stated above you are incorrect.

should be

<link rel="stylesheet" type="text/css" href="standard.css">
</head>

Make sure that it is before your< /head>

Try this out and see what happens.

<div class="small">My text</div> This is correct, and you appear to have your class set up correctly.




J-man -> RE: the CSS blues (10/30/2003 17:58:45)

DOH!

thanks c1KSissy this worked:
<link rel="stylesheet" type="text/css" href="standard.css">


.....I guess NN7 is a little more picky.




c1sissy -> RE: the CSS blues (10/30/2003 19:13:01)

quote:

ORIGINAL: J-man

DOH!

thanks c1KSissy this worked:
<link rel="stylesheet" type="text/css" href="standard.css">


.....I guess NN7 is a little more picky.


No problem J-man, just happy to be able to start giving back a bit after all this time![;)]




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.046875