Hooded_Villian
05-26-2008, 07:53 AM
I have a little gallery section that I am working on. Each of the Thumbnails will be linked to a CSS made box where the big picture will open up to be viewed. My little problem is this... How do I make the box inherit the size of the big picture, if all WIDTHS of the big pics is 750, but the HEIGHTS vary. The main reason for this is due to the border... I want the border to fit the picture.
<div id="galleryMain">
<h3>Photo Gallery Title:</h3>
<iframe id="galleryBoxFrame" name="content" frameborder="0" scrolling="auto"></iframe>
</div>
<div id="gallerySmall">
<a href="sample contri5/mainPics/placeholder.jpg" target="content" /><img src="sample contri5/thumbs/placeholder.gif" border="0" /></a>
<a href="sample contri5/mainPics/placeholder1.jpg" target="content" /><img src="sample contri5/thumbs/placeholder1.gif" border="0" /></a>
<a href="sample contri5/mainPics/placeholder2.jpg" target="content" /><img src="sample contri5/thumbs/placeholder2.gif" border="0" /></a>
</div>
#galleryMain {
background-color: #FFFFFF;
height: 800px;
width: 800px;
}
#galleryBoxFrame {
border: 1px solid #000000;
width: 750px;
}
<div id="galleryMain">
<h3>Photo Gallery Title:</h3>
<iframe id="galleryBoxFrame" name="content" frameborder="0" scrolling="auto"></iframe>
</div>
<div id="gallerySmall">
<a href="sample contri5/mainPics/placeholder.jpg" target="content" /><img src="sample contri5/thumbs/placeholder.gif" border="0" /></a>
<a href="sample contri5/mainPics/placeholder1.jpg" target="content" /><img src="sample contri5/thumbs/placeholder1.gif" border="0" /></a>
<a href="sample contri5/mainPics/placeholder2.jpg" target="content" /><img src="sample contri5/thumbs/placeholder2.gif" border="0" /></a>
</div>
#galleryMain {
background-color: #FFFFFF;
height: 800px;
width: 800px;
}
#galleryBoxFrame {
border: 1px solid #000000;
width: 750px;
}