JSDN_UK
08-23-2006, 11:29 AM
Hi again,
Some things are best explained with pictures, so here goes...
What i'm trying to achieve is this...
http://www.aestheticnet.com/enfield/image_table.gif
But what I get (using div's) is this...
http://www.aestheticnet.com/enfield/image_div.gif
Can anyone see where I've gone wrong with my code??? Any help would be fantastic!!!
.feature_item {
background-color:#f5ecd0;
height:100%;
}
.promoimage {
border-right: 1px solid #000000;
border-bottom: 1px solid #000000;
float: right;
margin-left: 10px;
margin-right: 10px;
margin-bottom: 10px;
}
<div class="feature_item" style="padding-top:10px; padding-left:10px; border-bottom:1px solid #000000; overflow:hidden">
<img src="/images/features/feature_graffiti_lge.jpg" alt="Latest Campaign Image" class="promoimage"/>
<h1>£500 Reward. The Writing is on the Wall...</h1>
<p>Enfield Council has declared war on graffiti - to help us bag-a-tagger and earn a £500 reward, call 0208 379 1000...</p>
<p><a href="/downloads/graffiti_reward.pdf">See the flyer</a>.</p>
<p style="clear:both"></p>
</div>
<div class="feature_item" style="border-bottom:1px solid #000000; overflow:hidden; vertical-align:top">
<div style="float:left; width:50%; padding-top:10px; padding-left:10px; padding-bottom:10px; overflow:hidden">
<img src="/images/features/feature_thames_sml.jpg" alt="Report a water leak on the road" class="promoimage"/>
<h1>Report a water leak on the road</h1>
<p>Help preserve one of our most important natural resources. If you see a water leak on the road don't hesitate to notify Thames Water immediately.</p>
<p><a href="http://www.thames-water.com/UK/region/en_gb/content/report_leakage">Report a water leak</a>.</p>
<p style="clear:both"></p>
</div>
<div style="float:right; width:50%; padding-top:10px; padding-left:10px; padding-bottom:10px; overflow:hidden">
<img src="/images/features/feature_autumn_sml.jpg" alt="Events Image" class="promoimage"/>
<h1>The Enfield Autumn Show</h1>
<p>Come to the fantastic annual Enfield Autumn Show. Novelty acts, motorcycle display teams, music concerts, rides, horticulture and crafts, flying owl display, charity stalls, animal rescue charities, kids events, football, funfair and much more.</p>
<p>Enfield Town Park, Enfield Town, EN1.
<br/>10.30am till 6.00pm.
<br/>£5.00 adults, £3.00 concessions - Kids 15 and under FREE.
<br/>Saturday 9th and Sunday 10th September 2006</p>
<p style="clear:both"></p>
<!-- <p><a href="http://www.enfield.gov.uk/press%20releases/2006/julsep/Council%20offers%20FREE%20SWIMMING.htm">See the press release</a>.</p> -->
</div>
</div>
Some things are best explained with pictures, so here goes...
What i'm trying to achieve is this...
http://www.aestheticnet.com/enfield/image_table.gif
But what I get (using div's) is this...
http://www.aestheticnet.com/enfield/image_div.gif
Can anyone see where I've gone wrong with my code??? Any help would be fantastic!!!
.feature_item {
background-color:#f5ecd0;
height:100%;
}
.promoimage {
border-right: 1px solid #000000;
border-bottom: 1px solid #000000;
float: right;
margin-left: 10px;
margin-right: 10px;
margin-bottom: 10px;
}
<div class="feature_item" style="padding-top:10px; padding-left:10px; border-bottom:1px solid #000000; overflow:hidden">
<img src="/images/features/feature_graffiti_lge.jpg" alt="Latest Campaign Image" class="promoimage"/>
<h1>£500 Reward. The Writing is on the Wall...</h1>
<p>Enfield Council has declared war on graffiti - to help us bag-a-tagger and earn a £500 reward, call 0208 379 1000...</p>
<p><a href="/downloads/graffiti_reward.pdf">See the flyer</a>.</p>
<p style="clear:both"></p>
</div>
<div class="feature_item" style="border-bottom:1px solid #000000; overflow:hidden; vertical-align:top">
<div style="float:left; width:50%; padding-top:10px; padding-left:10px; padding-bottom:10px; overflow:hidden">
<img src="/images/features/feature_thames_sml.jpg" alt="Report a water leak on the road" class="promoimage"/>
<h1>Report a water leak on the road</h1>
<p>Help preserve one of our most important natural resources. If you see a water leak on the road don't hesitate to notify Thames Water immediately.</p>
<p><a href="http://www.thames-water.com/UK/region/en_gb/content/report_leakage">Report a water leak</a>.</p>
<p style="clear:both"></p>
</div>
<div style="float:right; width:50%; padding-top:10px; padding-left:10px; padding-bottom:10px; overflow:hidden">
<img src="/images/features/feature_autumn_sml.jpg" alt="Events Image" class="promoimage"/>
<h1>The Enfield Autumn Show</h1>
<p>Come to the fantastic annual Enfield Autumn Show. Novelty acts, motorcycle display teams, music concerts, rides, horticulture and crafts, flying owl display, charity stalls, animal rescue charities, kids events, football, funfair and much more.</p>
<p>Enfield Town Park, Enfield Town, EN1.
<br/>10.30am till 6.00pm.
<br/>£5.00 adults, £3.00 concessions - Kids 15 and under FREE.
<br/>Saturday 9th and Sunday 10th September 2006</p>
<p style="clear:both"></p>
<!-- <p><a href="http://www.enfield.gov.uk/press%20releases/2006/julsep/Council%20offers%20FREE%20SWIMMING.htm">See the press release</a>.</p> -->
</div>
</div>