My apologies if the question is too simple. I'm sure that it is, but I have put this code through the validator on W3C.org and looked through may of the related links and strings on this site, but I've found nothing that's given me any answers, at least that I can make sense of.
I have a very rudimentary html document with some css styles in the head. All I want to do is have the copy wrap around the image using a simple css style.
I'm just learning how do do this and am following an example from a book, but the code is not working as it's supposed to.
Here is my code. What am I doing wrong? (I'm using Chrome and Safari running on Yosemite. _____________________ beginning of code_____________________
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<head>
<title>Float</title>
<meta http-equiv="content-type" content="text/html lang="en-US">
<style type="text/css">
.featureimage {
float: left;
width: 300px;
}
p.copy {
float: right;
align: center;
}
</style>
</head>
<body>
<h1>This Is A Very Large Housing D,evelopment.</h1>
<img src="BLDGS-300x200.jpg" width="300" height="200" alt="hi-rise" class="featureimage">
<p class="copy"> At vero eos et accusamus et iusto odio dignissimos ducimus, qui blanditiis praesentium voluptatum deleniti atque corrupti, quos dolores et quas molestias excepturi sint, obcaecati cupiditate non provident, similique sunt in culpa, qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, repellat… </p>
</body>
</html>
_________________ end of code ______________________