Click to See Complete Forum and Search --> : CSS and HTML linking question


sclebo05
10-06-2003, 08:18 PM
simple question. i am tired of doing long font tags over and over, so i want to use a simple CSS to make my formatting happen. i can't get my external CSS to work. i will post what i am doing below, in a summarized way:

in the <head> of the HTML document:

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

in the body of the HTML document:
<p class=dog>This is some text</p>

in the the file fonts.css:

P.dog {color: red}

that and only that.

the paragraph part works, but not the coloration. thi is the same if i try to bold the text or anything else. what am i missing? i wrote a more involved class, but it didn't work so i worked backwards to only changing color, and it still doesn't work. i open the file locally with Firebird, and the Quanta built in viewer, and i get nothing. i am not uploading the files to a server, but from what i understand that isn't the problem.

sharth
10-06-2003, 08:56 PM
I just did what you were trying to do and it worked fine. Upload your stuff somewhere so I can take a look at it and see if there is just something silly thats messed up.

sclebo05
10-06-2003, 09:38 PM
i posted all the relavant stuff, copied and pasted from the original. only changed the classname

edpi
10-06-2003, 10:10 PM
I had a similar problem a while back. It turned out I was doing the html and css right, but Firebird was having problems. I had upgraded Firebird several times, but never via a complete clean reinstall. Over time this broke the rendering of css sites.

One quick check: try using another browser; in my case Mozilla 1.4 rendered correctly, Firebird didn't.

The fix was to deleted my entire Firebird profile directory (save your bookmarks and user files first) then reinstalll latest Firebird.

Good luck.

sclebo05
10-06-2003, 10:18 PM
my problem was even gayer than that.

apparently, there must be spaces between the { } curly braces and the information inside. i put spaces around them and everything just worked. i had to reboot into findows and make a css with dreamweaver to see it. :rolleyes: sorry to waste your time all.

sharth
10-06-2003, 10:35 PM
hehe. least it worked. You might want to file a bug, since white space shouldn't be required.