Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 DIV heights and Firefox
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

dayve
Forum Moderator

USA
5820 Posts

Posted - 12 December 2004 :  23:07:02  Show Profile  Visit dayve's Homepage
I have images within DIV tags that I have set a height to 125 pixels and a border. If an image has a height greater than 125 pixels, the DIV grows with the image in IE but not Firefox. Looking for a suggestion or hack on how to get Firefox to have the DIV grow if the image is larger than the set height. I don't want to use tables so please don't suggest an alternative approach to using DIVs.. Thanks.

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 13 December 2004 :  02:52:48  Show Profile  Visit MarcelG's Homepage
does a div *have* a height according to the W3-standards ?
(http://www.schools.ash.org.au/bribieis/compendium/div.htm)

portfolio - linkshrinker - oxle - twitter
Go to Top of Page

D3mon
Senior Member

United Kingdom
1685 Posts

Posted - 13 December 2004 :  04:50:40  Show Profile  Visit D3mon's Homepage
is the img actually inside the div (<img ... />) or is it set as a background with CSS?


Snitz 'Speedball' : Site Integration Mod : Friendly Registration Mod
"In war, the victorious strategist only seeks battle after the victory has been won"

Edited by - D3mon on 13 December 2004 04:50:53
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20593 Posts

Posted - 13 December 2004 :  05:04:48  Show Profile  Visit HuwR's Homepage
in firefox you need to set min-height not height IE will ignore the min_height, so if your image is smaller than the DIV in ie, then the div will shrink, so to make sure it allways has a min-height in IE you will need to add a 1 pixel wide spacer gif that has the correct height.
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 13 December 2004 :  10:55:12  Show Profile  Visit dayve's Homepage
great... I'll give it a whirl. I totally forgot about min height.

Go to Top of Page

HuwR
Forum Admin

United Kingdom
20593 Posts

Posted - 13 December 2004 :  12:16:49  Show Profile  Visit HuwR's Homepage
had the same problem myself a couple of weeks ago
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 1.1 seconds. Powered By: Snitz Forums 2000 Version 3.4.07