![]() |
|
|||||||
| Register | FAQ | Members List | Arcade | Dev Directory | HB Bank | Calendar | Search | Today's Posts | Mark Forums Read |
| HTML / XHTML / CSS Discuss HTML, XHTML and CSS coding in this forum. |
| Have A Look At Some Of Our Webmaster Related Sponsors! | |||||
![]() Script Directory |
![]() Advertise Here |
![]() Market Leverage |
![]() Free Templates |
![]() 3D Guide-characters |
![]() Advertise Here |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
New Hunter
|
Like the title says. im new at this. i know the very basics to get me by but on this im stuck. As you can see on the attached file that the background isnt wrapping around the thumbnails. I need to know how to fix it or if i did something wrong.
CSS Block: Code:
#wrapper{
background:#222;
border-top:#222 10px solid;
border-bottom:#222 10px solid;
width: 652px;
margin-bottom:25px;
}
#text_area{
background:#151515;
border:#000 1px solid;
padding:10px;
margin:10px;
text-align:left;
}
.thumbnail{
padding: 7px;
border: 1px solid #ddd;
float: left;
margin-right: 10px;
margin-bottom: 15px;
}
.caption{
font-size: 0.9em;
padding-top: 0.2em ;
}
HTML Code:
div align="center"> <div id="wrapper"> <div id="text_area"> <h3><img src="img/tag_blue.png"/> Signatures!</h3> <div class="thumbnail"> <a href="img/sig/behindthemask.png" rel="lightbox"><img src="img/sig/behindthemask.gif" width="150" height="75" alt="Behind The Mask" /></a> <div class="caption"> <img src="img/photo.png" width='16' height='16' alt="" /><a href="img/sig/behindthemask.png" rel="lightbox">View Full Image</a> </div> </div> <div class="thumbnail"> <a href="img/sig/taggedBW.png" rel="lightbox"><img src="img/sig/tagged.gif" width="150" height="75" alt="Tagged" /></a> <div class="caption"> <img src="img/photo.png" width='16' height='16' alt="" /><a href="img/sig/taggedBW.png" rel="lightbox">View Full Image</a> </div> </div> <div class="thumbnail"> <a href="img/sig/laidback.png" rel="lightbox"><img src="img/sig/laidback.gif" width="150" height="75" alt="laidback" /></a> <div class="caption"> <img src="img/photo.png" width='16' height='16' alt="" /><a href="img/sig/laidback.png" rel="lightbox">View Full Image</a> </div> </div> </div> </div> </div>
|
|
|
|
|
|
#2 (permalink) |
|
Sharp Shooter
|
thanks for posting, im sure someone from here will help you out.
__________________
Software | William R. Nabaza Blogs | U.S.$5 Domains | FriendTEK | Arcontica | Maypajo| www.sendload.net | Forums| Unfolds Videos | WebTor| Url Shortener| 25%discount| Free Hosting Blogs| | Web Directory| Weblord's Community| Freebies| Cash Surf | Funny Jokes | www.bloghaven.org | Videos | Videos |
|
|
|
|
|
#4 (permalink) |
|
New Hunter
|
Looking at your original code, all you needed to add is another DIV below the thumbnails with the clear: both; property and value applied to it. Floated elements do not take up space when nested in block elements.
Code:
<div class="thumbnail"> <a href="img/sig/behindthemask.png" rel="lightbox"><img src="img/sig/behindthemask.gif" width="150" height="75" alt="Behind The Mask" /></a> <div class="caption"> <img src="img/photo.png" width='16' height='16' alt="" /><a href="img/sig/behindthemask.png" rel="lightbox">View Full Image</a> </div> </div> <div class="thumbnail"> <a href="img/sig/taggedBW.png" rel="lightbox"><img src="img/sig/tagged.gif" width="150" height="75" alt="Tagged" /></a> <div class="caption"> <img src="img/photo.png" width='16' height='16' alt="" /><a href="img/sig/taggedBW.png" rel="lightbox">View Full Image</a> </div> </div> <div class="thumbnail"> <a href="img/sig/laidback.png" rel="lightbox"><img src="img/sig/laidback.gif" width="150" height="75" alt="laidback" /></a> <div class="caption"> <img src="img/photo.png" width='16' height='16' alt="" /><a href="img/sig/laidback.png" rel="lightbox">View Full Image</a> </div> <br style="clear:both;"> |
|
|
|
|
|
#5 (permalink) | |
|
The Dev Hunter
|
Quote:
![]() Nice work spotting that!
__________________
l Bid for Position l Website Advertising l Web Directory l Be a star in The DevHunters Directory |
|
|
|
|
|
|
#6 (permalink) | |
|
Senior Moderator
|
I think he has figured it out in 4-5 months ;o.
Quote:
clear:both; is used to separate elements with this from floated elements.
__________________
+-(X)HTML, CSS, JavaScript, SEO, PHP, Flash-+ Code:
<style type="text/css"> u { text-decoration: none; } </style>
|
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|