I had just began building a website.
I don't know what is wrong with it, it was working about two seconds ago then I made a minor change and refreshed the website and the css completely stopped working. Here's my code

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<title> Squids </title>

<style type="text/css">

*  { padding: 0px; margin: 0px; }
#header  { height: 200px; background-color: #ffffff; border-bottom: 5px solid #777777; color: #2C5197; padding: 1px 1px 3px 1px ; } 
#body { background-color: #2C5197; margin-top: 0px; padding: 1px 1px 3px 1px ;  } 

</style>
</head>

<body>

<!-- Header -->

<div id="header" >
<p> Header </p>
</div>

<!-- End of Header -->

<!--Nav Bar-->



<!--End Of Nav Bar-->

<div id="body" >
<p> Content </p>
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
</div>

<!-- Clock Flash Player -->
<!-- <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" 
width="500" height="150" name="GameID">
<param name="movie" value="simpleclock-500x150.swf">
<embed src="simpleclock-500x150.swf" width="500" height="150" 
quality="high" type="application/x-shockwave-flash" 
pluginspage="http://www.macromedia.com/go/getflashplayer" name="GameID">
</embed></object> -->
<!-- End of Clock Flash Player -->

</body>

</html>

If someone could tell me what's wrong with it that would be greatly appreciated
I even used a validator and it said that my website passed

Recommended Answers

All 5 Replies

What is the problem you are having?

The webpage looks like there is no CSS it looks like :

Heading
Content

The CSS you have listed above produces the styles as they should. html-css

huh, must be something wrong with the FTP client?

Not sure what you mean. Do you not see it as the pic I posted?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.