home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

How do you get DIV height to adjust to content in Firefox?

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 1623
Discussions: 200,957, Posts: 2,379,495, Members: 246,327
Old April 5th, 2007, 02:37 PM   Digg it!   #1 (permalink)
Member
 
Join Date: Jun 2004
Posts: 178
How do you get DIV height to adjust to content in Firefox?

Hi

I have a DIV with dynamic content in it. I have the hieght attribute set to auto.

It changes size in IE6 fine, but in Firefox it always has a height of zero. It appears as a thick horizontal line (because it has a 1px border), and stranger still, it's content appears beneath it.

Is there a simple thing to add that I am missing here?

It can be seen at www.bigbadroo.com.au/litecommerce - not meant to be live yet.

cheers

Shaun
__________________
I'm looking for a male vocalist to work with. Go to http://people.aapt.net.au/celebritymusic/s...ikingsmith.html to email me
celebritymusic is offline   Reply With Quote
Old June 9th, 2008, 11:17 AM     #2 (permalink)
Junior Member
 
Join Date: Jun 2008
Location: Florida
Posts: 1
div problem fix

#container
{
min-height:566px; /*ff*/
height: auto !important; /*ie7 */
height: 566px; /*ie6 */
}


for fire fox you need to set a min-hight form here it will auto size
the min-hight also works for ie7 so the height auto !important; will force it to size auto
then i just set a hight for the div in ie6 or just put auto it will resize either way


also if you are using dreamweaver you will not see it take effect in its design view, you will have to preview it in all 3 browsers.


themadnerd

Last edited by TheMadNerd : June 9th, 2008 at 11:27 AM.
TheMadNerd is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
Making new text appear in a DIV - how to do? celebritymusic Webmastering and Programming 2 March 11th, 2007 02:42 PM
How to make a DIV rest at the bottom of another DIV in CSS? celebritymusic Webmastering and Programming 1 March 1st, 2007 10:15 AM
div overflow in firefox amtrac24 Webmastering and Programming 3 October 14th, 2006 12:02 AM
CSS DIV Problems Cyberlore Webmastering and Programming 0 March 6th, 2004 03:49 AM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (2947)
The disrespect of Obama by Russian .. (41)
Making Health Care Worse (178)
Wireless Televisions. (12)
CPU fan stops spinning randomly (9)
Regular Build (11)
windows 7 problem (7)
Laptop with wireless problem. (5)
Is the PSU I received dead? (12)
Print spooler problem (15)
windows vista security holes (11)
radeon x850xt platinum & shader.. (6)
HIS HD5770 graphic card question (15)
Install XP pro and a Vista laptop ?.. (11)
Recent Discussions
Open With ..... Win7 (1)
Kingston Bluetooth Dongle Driver (0)
webcam (0)
upgrade for hp a6101 (0)
windows vista security holes (11)
Laptop with wireless problem. (5)
Modern Warfare 2: Who Bought It? (64)
tv not turn on-makes clicking sound (2)
CPU fan stops spinning randomly (9)
EVGA 9800 gtx help with finding a goo.. (11)
Regular Build (11)
Help with onclick and buttons (0)
Virus advise (8)
My monitor won't turn on after instal.. (1)
Internet Lost (3)
Dept. of HS: NSA 'Helped' Develop Vis.. (16)
Point and Shoot Camera Suggestions. (4)
Multiple Restarts Required at Boot (2)
Ideal cheap graph card for PC-Gaming? (18)
radeon x850xt platinum & shader 3 (6)
Graphics Card Upgrade Question (4)
For Sale BFG GTX285 OC2 with 10 year .. (3)
How to convert MP3's (4)
Wireless Televisions. (12)
Hp Artist Edition + Matching Bag (0)


All times are GMT -4. The time now is 07:28 AM.
TechIMO Copyright 2009 All Enthusiast, Inc.



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