Local HTML vs. External CSS

Giganews Newsgroups
Subject: Local HTML vs. External CSS
Posted by:  Peter Collinson (bluesc…@optonline.net)
Date: Sun, 20 Jul 2003

Hi...

My external style sheet for a 200+ page site is marked up as:

    BODY, P, TABLE, TD, DIV {
    background: #ffffff;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    font-size: 1em;
    color: #000000;
    font-family: Verdana, sans-serif, arial;
    }

I have one solitary page on which I'd like a pale blue background, so I
coded:

    <LINK rel="stylesheet" type="text/css" href="gz.css"
title="default">
    </HEAD>
    <BODY bgcolor="#80ffff" onLoad="setTimeout(window.close, 5000)">

The page validates as HTML 4.01 transitional, but the background stays
white. I was under the impression that local code takes precedence.

Do I really have to go to a CLASS or ID selector?

--
- Yours truly, Pete Collinson

Replies