CSS not working!


#1

I have done html and css tutorials on the web and now am trying to get a simple CSS file work with my html, but it won’t. Here is the code, if you can help:

HTML:

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

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

<head>
	<title> mywebsite.com </title>
	<link rel="stylesheet" type="text/css" href="style.css" />
  </head>

  <body> 
	<div id="logo">
	<img src="logo.png" width="250" height="200" alt="logo" 
	style="position:absolute;top: 1px;left:1px;" />
	</div>

	<p class="floatstop">Please help me get my css to work! </p>
  </body>

</html>

AND CSS:

    #logo {
	float:left;
	width: 250px;
}

.floatstop {
	clear:both;
}

p {
	 "Comic Sans MS", sans-serif;
}

#2

take the inline style out of your img tag.
http://jsfiddle.net/QuKQX/
your p{} declaration is invalid syntax.