I have the following code which displays 6 photos - with a coloured background behind. This coloured background is controlled with a stylesheet.
When displayed in Internet Explorer, the 6th photo wraps neatly to the second row, displayed underneath the first photo.
But in Firefox, the 6th photo is displayed horizontally to the right of the 5th photo, and stretches the background area, so that its not consistent with the form areas above.
The stylesheet class for offer0:
The stylesheet class for offerimg:
Can anyone offer any advice. Again, IE and Firefox not behaving consistently.
I realise the width of the main div area is 874, and that with 6 photos, their total width would add to 900 - but how come IE is smart enough to wrap automatically, and Firefox isnt? I just wanted to understand if there is some setting I can make in HTML/CSS that tells it to be smart!
When displayed in Internet Explorer, the 6th photo wraps neatly to the second row, displayed underneath the first photo.
But in Firefox, the 6th photo is displayed horizontally to the right of the 5th photo, and stretches the background area, so that its not consistent with the form areas above.
Code:
<div class="offer0"><a href="properties_for_sale/BO-PROP-000027861.jpg" target="_blank"><img src="properties_for_sale/BO-PROP-000027861th.jpg" class="offerimg" /></a><a href="properties_for_sale/BO-PROP-000027862.jpg" target="_blank"><img src="properties_for_sale/BO-PROP-000027862th.jpg" class="offerimg" /></a><a href="properties_for_sale/BO-PROP-000027863.jpg" target="_blank"><img src="properties_for_sale/BO-PROP-000027863th.jpg" class="offerimg" /></a><a href="properties_for_sale/BO-PROP-000027864.jpg" target="_blank"><img src="properties_for_sale/BO-PROP-000027864th.jpg" class="offerimg" /></a><a href="properties_for_sale/BO-PROP-000027865.jpg" target="_blank"><img src="properties_for_sale/BO-PROP-000027865th.jpg" class="offerimg" /></a><a href="properties_for_sale/BO-PROP-000027866.jpg" target="_blank"><img src="properties_for_sale/BO-PROP-000027866th.jpg" class="offerimg" /></a><br /></div>
The stylesheet class for offer0:
Code:
div.offer0{
width: 874px;
border: 1px solid #DDDDDD;
margin-top: 10px;
background: #F0F9ED !important;
display: table !important;
padding-bottom: 15px;
}
The stylesheet class for offerimg:
Code:
img.offerimg{
width: 150px;
margin: 15px 5px 0px 15px;
border: 1px solid #303030;
}
Can anyone offer any advice. Again, IE and Firefox not behaving consistently.
I realise the width of the main div area is 874, and that with 6 photos, their total width would add to 900 - but how come IE is smart enough to wrap automatically, and Firefox isnt? I just wanted to understand if there is some setting I can make in HTML/CSS that tells it to be smart!