Forum Moderators: not2easy

Message Too Old, No Replies

Cascading style sheets

Href

         

malcolmcroucher

1:16 pm on Jan 7, 2008 (gmt 0)

10+ Year Member



What is the default location for HREF
<link href="bepositive.css" rel="stylesheet" type="text/css" media="screen" />

I cannot for the life of me find my style sheet?

i have tried hard coding the directory and that doesnt seem to work .
Does anyone know what the trick is to href?

Regards

Malcolm

penders

2:48 pm on Jan 7, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



As long as you don't have a BASE element stating otherwise, then it should look for
href="bepositive.css"
in the current directory ie. the same directory as your HTML file. Note also that the filename is case-sensitive if you are on Linux.

However, your path might be correct... if your page is not loading the stylesheet, then it could also be an issue with your server returning an incorrect MIME-Type for your CSS file. It should be "text/css", but it is possible that your server is returning something else!?