View Single Post
  #1 (permalink)  
Old May 16th, 2007, 12:41
Craigj1303 Craigj1303 is offline
SuperMember

SuperMember
Join Date: Apr 2007
Location: UK
Age: 31
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
DIV's overspilling container DIV in Firefox

Hi all

I am presenting thumbnails within a container DIV. The container has no height attribute in the CSS file. I am working on 3 different pages of thumbnails all with different numbers of thumbnails within.

In IE the height of the container DIV increases and decreases depending on how many thumbnails are within it. However, in Firefox the thumbnails "overspill" outside of the container DIV unless I specify a height attribute in the CSS to make it high enough. Obviously I don't want to do this because every page needs to be a different height.

Is there anything I can put in the CSS to make Firefox adjust the height of the container DIV depend on how many thumbs there are like IE does?

This is the CSS I have:
HTML: Select all
#gallerycontainer {
 width: 700px;
 margin: 0 auto;
 background: #EFE6C5;
 text-align: center;
 border: solid black 1px;
 }
 
.galleryimg {
 border: solid 1px #330000;
 border-width: 3px;
 }
 
div.mainleft{
 float: left;
 width: 232px;
 height: 180px;
 margin-top: 30px;
 }
Also, here is a link to the gallerys. Essex, Wales, West Country and Misc all have different number of images.

http://uk.geocities.com/johnson463@b...m/gallery.html

Last edited by Craigj1303; May 16th, 2007 at 12:58. Reason: added link to site
Reply With Quote