| Excavator |
12-10-2012 02:06 AM |
So, the snippet you posted... I'm not sure why you wrap an image in paragraph tags or why the strong tag too...
"The <em>, <strong>, <dfn>, <code>, <samp>, <kbd>, and <var> tags are all phrase tags. They are not deprecated, but it is possible to achieve richer effect with CSS." See http://www.w3schools.com/tags/tag_phrase_elements.asp
Either way, it's nothing to do with the image.
Following my demo, look at it with floats instead, something like this -
Code:
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
html, body {
margin: 0;
background: #fc6;
}
#container {
width: 800px;
margin: 30px auto;
padding: 200px 0 300px;
background: #fff;
box-shadow: 0 0 20px #8493A6;
overflow: auto;
}
.wide_wrapper {
width: 500px; /*adjust width to suit*/
margin: 50px 0 0 150px;
overflow: auto;
text-align: left;
border: 1px solid #F00;
font-size: 0.7em;
}
.wide_wrapper img {
float: left;
margin: 5px; /*adjust space to suit*/
background: #eee;
}
</style>
</head>
<body>
<div id="container">
<div class="wide_wrapper">
<img src="awards2012photo's/Representatives of Adventure Playground at the Forks.png" width="329" height="270" alt="Parks Canada" />
<h3>Parks Canada</h3>
<p>
Variety The Children’s Charity<br />
Adventure Playground at the Forks</strong><br />
Monica Giesbrecht<br />
Hilderman Frank Thomas Cram Landscape Architects<br />
Parks Canada.<br />
Dick Penner J&D Penner Ltd<br />
Ken Crozier Crozier Enterprises</p>
</p>
<!--end wide_wrapper--></div>
<!--end container--></div>
</body>
</html>
|