Help - Search - Members - Calendar
Full Version: Site not using the .css file
HTMLHelp Forums > Web Authoring > Cascading Style Sheets
Maulwurf
I am trying to convert an older site (www.theAWA.org) to use CSS. I have created a stylesheet that is held in the same directory as the html and included the link in all the html files. I have deleted the old formatting from the Body tags etc. But, for some reason unknown to me, the whole site does not use the stylesheets.

I have tried on my PC and others. Personally I use Firefox, but also have MS Internet Explorer installed to try it on. Both work the same.

The test site (the one not working) can befound at www.theAWA.org/site9/index.html

This is my first attempts with CSS. Any pointers will be appreciated.

EDIT: the title and navigation bar should both have a blue background. The main part should have a piicture inthe background and all the text colours are wrong. This is how I know the stylesheet is not working.
pandy
Hi! smile.gif

The style sheet is where you tell us, but you tell the browser something else.

HTML
<LINK href="style/theawa.css" type="text/css">


http://www.theawa.org/site9/style/theawa.css doesn't exist. http://www.theawa.org/site9/theawa.css does.
Maulwurf
QUOTE(pandy @ May 29 2008, 01:58 PM) *

Hi! smile.gif

The style sheet is where you tell us, but you tell the browser something else.

HTML
<LINK href="style/theawa.css" type="text/css">


http://www.theawa.org/site9/style/theawa.css doesn't exist. http://www.theawa.org/site9/theawa.css does.



Am I really so stupid? I thought the "style/" was something that had to be there. I didn't realise it was the directory.

Thank you. It is...sort of...working now. Just have to work on the CSS content. Amazing how such a silly oversight can take so long to see (over a week now) and someone else (who knows what they are talking about) sees in a few minutes.

Thank you. smile.gif
pandy
QUOTE(Maulwurf @ May 29 2008, 03:32 PM) *

Am I really so stupid?


Yes! laugh.gif

Don't worry. When you work with something new to you, it's easy to get "blind". You'll get over it. happy.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.