<html>
<head>
<style>
.endorsementfloat {width: 200; height:100; margin-right:5; float:left }
</style>
</head>
<body>
<!-- my resolution = 1360 x 768 -->
<div class='endorsementfloat'> <a href='http://www.google.com/'><img src='pics/snowcritter.jpg' width='100%'></a><br />An ugly critter </div>
<div class='endorsementfloat'> <a href='http://www.google.com/'><img src='pics/girl.jpg' width='100%'></a><br />A woman </div>
<div class='endorsementfloat'> <a href='http://www.google.com/'><img src='pics/bird.jpg' width='100%'></a><br />A bird </div>
<div class='endorsementfloat'> <a href='http://www.google.com/'><img src='pics/religion_stats.jpg' width='100%'></a><br />A graph </div>
<div style="clear:both"></div>
<div class='endorsementfloat'> <a href='http://www.google.com/'><img src='pics/snowcritter.jpg' width='100%'></a> </div>
<div class='endorsementfloat'> <a href='http://www.google.com/'><img src='pics/snowcritter.jpg' width='100%'></a> </div>
<div class='endorsementfloat'> <a href='http://www.google.com/'><img src='pics/snowcritter.jpg' width='100%'></a> </div>
<div class='endorsementfloat'> <a href='http://www.google.com/'><img src='pics/snowcritter.jpg' width='100%'></a> </div>
</body>
</html>
(once again the output can be seen at www.wardricker.com/temporary.html)
I am using different pictures and am including some text, as I might need to do. Therefore, I think I have to use divs, right? What I want is for the divs to hold to the dimensions that I have given them, 200 x 100 in this example, no matter what I put in them. When I display in IE, the divs take up about half of the height of my 1360 x 768 screen, so roughly about 400 px. The 100 px holds in Firefox, but the bottoms of the pics are cut off by the second row. I don't understand why a div ends up being 400 px high when I have told it to be only 100 px. Or in other words why the picture isn't constrained to fit in the div. Is there a way to set the dimensions of a div so that it will hold?

New Topic/Question
Reply




MultiQuote





|