PDA

Click to See Complete Forum and Search --> : Style sheets


Ianpbaker
Jul 7th, 2000, 04:01 AM
Hi all

I am having this really confusing problem at the moment and I will be dammed if I can sort it out.

I have an entire site running off one style sheet that is being used for all my ASP and HTML pages. Within the style sheet I have various different classes to format every thing including the BODY tag which sets up the back ground colour.

If I view my HTML pages locally they are all displayed correctly. If I run any of my pages (Both ASP and HTML) through the server (Either my main server or PWS), all the classes get reconized For formatting, But My BODY class get totally ignored and doesn't set the bgcolor.

Has any one else encounted this or knows the solution

Thanx in Advance

Ian

mattbrown
Jul 11th, 2000, 06:34 PM
I've never had that problem but I've had similar ones where my classes have been ignored because of finickity little syntax errors.

ensure your body class looks something like this

BODY {
background-color:#FFFFFF;
font-family:verdana;
font-size:8pt;
}

etc. etc.

Ianpbaker
Jul 12th, 2000, 02:57 AM
Hi Matt

Cheers for the advice, I know about the finickity little syntax errors And the solution to the problem was weirder than the problem itself. The link to the stylesheet was made in ASP depending on what An Id Parameter was. The id was put in as a folder in the HREF. The problem was that When the id was in uppercase it displayed all the classes apart from the body, but when it was in lower case all the classes where used. If anyone can work out why, they deserve a medal.

Ian