Go Back   DevHunters.com l Webmaster Forum - Web Advertising - Web Design - SEO Forums > Webmaster / Coding / Web Design Discussion > HTML / XHTML / CSS

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
3D Guide-characters


Advertise Here

Reply
 
LinkBack Thread Tools Display Modes
Old 12-27-2007, 05:05 PM   #1 (permalink)
New Hunter
 

Join Date: Dec 2007
Posts: 8
iTrader: 0 / 0%
Hunter Bux: 0
KaoS is on a distinguished road
Default New at coding and stuck

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 Block:
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>
KaoS is offline   Reply With Quote
Old 12-27-2007, 07:17 PM   #2 (permalink)
Sharp Shooter
 
weblord's Avatar
 

Join Date: Mar 2007
Location: Philippines
Posts: 1,324
iTrader: 1 / 100%
Hunter Bux: 611.00
weblord has much to be proud ofweblord has much to be proud ofweblord has much to be proud ofweblord has much to be proud ofweblord has much to be proud ofweblord has much to be proud ofweblord has much to be proud ofweblord has much to be proud of
Send a message via ICQ to weblord Send a message via AIM to weblord Send a message via MSN to weblord Send a message via Yahoo to weblord Send a message via Skype™ to weblord
Default

thanks for posting, im sure someone from here will help you out.
weblord is offline   Reply With Quote
Old 12-31-2007, 12:07 AM   #3 (permalink)
New Hunter
 

Join Date: Dec 2007
Posts: 8
iTrader: 0 / 0%
Hunter Bux: 0
KaoS is on a distinguished road
Default

Nevermind on this. I put the thumbnails in tables and it fixed it. Thanks anyways/
KaoS is offline   Reply With Quote
Old 04-08-2008, 05:05 PM   #4 (permalink)
New Hunter
 

Join Date: Jan 2008
Posts: 14
iTrader: 0 / 0%
Hunter Bux: 0
Toicantien is on a distinguished road
Default

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;">
Toicantien is offline   Reply With Quote
Old 04-08-2008, 05:51 PM   #5 (permalink)
The Dev Hunter
 
Hunter1's Avatar
 

Join Date: Mar 2007
Location: Indiana USA
Posts: 1,874
iTrader: 9 / 100%
Hunter Bux: 18,026.33
Hunter1 has much to be proud ofHunter1 has much to be proud ofHunter1 has much to be proud ofHunter1 has much to be proud ofHunter1 has much to be proud ofHunter1 has much to be proud ofHunter1 has much to be proud ofHunter1 has much to be proud of
Default

Quote:
Originally Posted by Toicantien View Post
Looking at your original code, all you needed to add is another DIV below the thumbnails[/code]
yep yep! I totally agree

Nice work spotting that!
Hunter1 is offline   Reply With Quote
Old 04-09-2008, 06:18 AM   #6 (permalink)
Senior Moderator
 
SpOrTsDuDe.Reese's Avatar
Default

I think he has figured it out in 4-5 months ;o.

Quote:
Quote:
Originally Posted by Toicantien
Looking at your original code, all you needed to add is another DIV below the thumbnails
I noticed that too.

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>
GameYin. Redesigning for DevPlooth.
SpOrTsDuDe.Reese is offline   Reply With Quote
Old 04-09-2008, 09:00 AM   #7 (permalink)
New Hunter
 

Join Date: Jan 2008
Posts: 14
iTrader: 0 / 0%
Hunter Bux: 0
Toicantien is on a distinguished road
Default

Better late then never, eh? It might not have helped him with this problem, but may answer questions in the future.
Toicantien is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT -5. The time now is 03:22 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios