PDA

View Full Version : Style Sheet not being applied?


Bry Man
06-23-2004, 08:20 PM
Hi I recently moved to a new host and uploaded my Old site with modifications so that it would work properly and....its not working, the style sheet isnt being applied to my site for some reason but it did in the old one, the directory structure is the same but im at a loss because nothing ive done seems to solve my problem

heres my head with the caller script for the sheet
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html>
<head>
<title>RsX Clan Site</title>
<meta http-equiv="Content-Type" content="text/xhtml; charset=iso-8859-1" />
<link rel="stylesheet" type="text/css" href="/css/default.css" title="Default" />

<!-- Start code //--><SCRIPT LANGUAGE="JavaScript"><!-- function open (){return true;} //--></SCRIPT>

<div class="logo"><img src="../Images/ReactorLogo1.jpg"></div>

</head>

The css file (default.css) is located in /css/default.css but it doesnt seem to be called, I checked the calling tag with W3 schools and it seems to be fine, only thing that I can think of is that I accidently deleted a line that needs to be there since then...any help is appreciated

Vladdy
06-23-2004, 08:31 PM
All browsers or Mozilla only (http://www.codingforums.com/showthread.php?t=25807) ?

Bry Man
06-23-2004, 08:35 PM
well I havent chcked it in anything but IE and MyIE2(a mozilla like adpatation of IE) thing is its not working now when was prevoiusly so theres gotta be something with the code :confused:

Vladdy
06-23-2004, 09:08 PM
Try putting all files in the same folder (and changing references accordingly)...

Vladdy
06-23-2004, 09:09 PM
MyIE2(a mozilla like adpatation of IE) ... You mean it complies with all the standards Moz does?
:D :D :D

Roy Sinclair
06-23-2004, 09:14 PM
... You mean it complies with all the standards Moz does?
:D :D :D

Naw, it probably just looks like Moz but still mistreats your html and css.

Vladdy
06-23-2004, 09:20 PM
Naw, it probably just looks like Moz but still mistreats your html and css.
LOL I know - you can not turn crap into candy by putting a shiny wrapper on it.

Bry Man
06-23-2004, 09:56 PM
I also triid putting the script with the caller and the css file withing the same directory and changd paths accordingly...same effect..nothing, if your interested in looking at my ie heres a link to the homepage http://www.myie2.com/ its free but it asks for a donation at startup, I believe u can tell it to not ask

ronaldb66
06-24-2004, 09:21 AM
If "css" is a subdirectory of the directory your page resides in, I'd suggest removing the slash before "css" in the URL; I'm sure it isn't needed ("css/default.css" will do nicely) and it may mean something different; I'd have to check that, though.

Also check the obvious things: is the file really in the correct directory? Does the file name correspond to what you state in the URL, including upper/lower case? Yes, it may be important!

Lastly, and totally unrelated to your problem, but important nonetheless: remove that div with the logo from the head; there must be no content in the head! Move it to the body where it belongs.

Bry Man
06-24-2004, 06:42 PM
ooo your right I never saw that...the logo thing, for now im gonna put the css thing asside and try using PhpNuke