DIV's overspilling container DIV in Firefox

This is a discussion on "DIV's overspilling container DIV in Firefox" within the Web Page Design section. This forum, and the thread "DIV's overspilling container DIV in Firefox are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old May 16th, 2007, 12:41
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

  #2 (permalink)  
Old May 16th, 2007, 12:59
Reputable Member
Join Date: Dec 2005
Location: Texas
Age: 19
Posts: 328
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to daygon Send a message via MSN to daygon Send a message via Yahoo to daygon
Re: DIV's overspilling container DIV in Firefox

A. A link would be nice.
B. in your #gallerycontainer, you neet to put overflow:visiable.

Try that and i should work
Reply With Quote
  #3 (permalink)  
Old May 16th, 2007, 13:29
SuperMember

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

I tried adding the "overflow: visible" to the gallery container but it didn't work. There is a link available at the bottom of my original post. If you look in Firefox it seems to mess up the whole layout whereas IE displays everything fine?
Reply With Quote
  #4 (permalink)  
Old May 16th, 2007, 19:12
SuperMember

SuperMember
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: DIV's overspilling container DIV in Firefox

Usually overflow:hidden;
works.
Reply With Quote
  #5 (permalink)  
Old May 16th, 2007, 23:46
SuperMember

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

Neither "overflow: visible" or "overflow: hidden" worked but someone suggested using a spacer DIV between the thumbnail DIV and the container DIV which worked a treat!
Reply With Quote
Reply

Tags
container, div

Thread Tools

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Div's tags in IE = death verkevinmanering69err455 Website Planning 2 Mar 12th, 2007 04:43
Container Problem in FireFox asengh Web Page Design 8 Dec 12th, 2006 16:23
Div's overlapping fluerasa Web Page Design 2 Oct 8th, 2006 10:09
container overlaps upon text resize in Firefox eksquall Web Page Design 4 Aug 1st, 2006 16:26
Container size difference in Explorer vs. Firefox. Chris Passeno Web Page Design 4 Dec 21st, 2005 14:10


All times are GMT. The time now is 21:09.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43