Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Body Element In CSS Not Working When Linked In External Style Sheet

0 views
Skip to first unread message

Rita Greenberg

unread,
Mar 15, 2001, 11:51:14 AM3/15/01
to
Hi.

I have an external style sheet with a "BODY" rule that should set the
background-color: yellow. This does not work. Only when I use Link Embedded
for the "BODY" rule does the background color change to yellow.

What's interesting is that I have a "H1" rule in the external style sheet
that works as required.

External Style Sheet:
body
{
background-color: yellow DOESN'T WORK!
}

Link Embedded:
<HEAD>
<STYLE TYPE="text/css">
<!--
body {background-color: yellow} WORKS!
-->
</STYLE>
</HEAD>


I'm using IE 5.5


AlanZ

unread,
Mar 15, 2001, 11:55:08 AM3/15/01
to
Something else is causing your problem...
I always use external CSS files and have no problem changing the
background-color.

Might chack a validator or post a link so someone could take a look...

HTH


Rita Greenberg

unread,
Mar 15, 2001, 1:40:00 PM3/15/01
to
Hi Alan.

Yes, I had a comment in the CSS file but had an extra "*/" after the last
one. Once I took that out it worked fine. Thanks for your help.


"AlanZ" <zap...@yahoo.com> wrote in message
news:uvDeaCXrAHA.1336@tkmsftngp03...

0 new messages