[thelist] CSS Issue IE vs Firefox
Chris Dempsey
evolt at cubeit.co.uk
Wed Jul 5 13:45:40 CDT 2006
Georg you are a star, thank you!
Looks like I have some reading to do as I've not seen:
height:auto!important;
before.
Thanks,
Chris.
-----Original Message-----
From: thelist-bounces at lists.evolt.org
[mailto:thelist-bounces at lists.evolt.org] On Behalf Of Gunlaug Sørtun
Sent: 05 July 2006 19:30
To: thelist at lists.evolt.org
Subject: Re: [thelist] CSS Issue IE vs Firefox
Chris Dempsey wrote:
> Would anyone like to take a look at: www.viridismotoringservices.com
> and see if they can advise why in Firefox the body DIV tag does not
> expand to fit the content placed in it as it does in IE6?
> Tried a few things already but cannot figure what's causing this
> behaviour [poor css on my part probably].
...and an IE/win bug :-)
- IE doesn't respect any 'height' so it will expand those divs until the
content fits inside - which looks good but is completely wrong.
- Firefox, and all good browsers, do respect 'height', so what doesn't
fit inside those divs will overflow them - which looks bad but is
perfectly correct.
Simplest solution: don't set 'height' on those divs.
I tested your page with the following style...
div {height: auto!important;}
...and Firefox, Opera and IE6 rendered it pretty identical.
Georg
--
http://www.gunlaug.no
--
* * Please support the community that supports you. * *
http://evolt.org/help_support_evolt/
For unsubscribe and other options, including the Tip Harvester
and archives of thelist go to: http://lists.evolt.org
Workers of the Web, evolt !
More information about the thelist
mailing list