You are here: Re: Another odd IE flickering CSS problem! « HTML « IT news, forums, messages
Re: Another odd IE flickering CSS problem!

Posted by Neredbojias on 07/31/05 13:55

With neither quill nor qualm, Els quothed:

> Neredbojias wrote:
>
> > With neither quill nor qualm, Els quothed:
> >
> > This stupid newsreader accidently deleted your last reply as I was going
> > to answer it but I remember the gist of it.
> >
> > You said something like 'I thought the content was the point...'
>
> Almost ;-)
> I thought the point was to make the div's height extend to encompass
> the content. IE does that, even if you give the div a height of say
> 1px. That is, if you don't add stuff like overflow properties.
>

Okay, apparently the measurable height does grow with the content unless
you specify an overflow property. So a "hack" for getting around this
fault could be specifying the overflow property.

> > It is. I just made an IE hack for "position:fixed;" which is why I know
> > at least sometimes IE honors the height parameter.
>
> It does honour that parameter, if the content isn't too high, and if
> no overflow property is set.
>

I think we agree. In IE, content expands a div if it exceeds the div's
dimensions unless the height (or width) is set and overflow is set to
auto.

> > Perhaps you need to
> > include an overflow statement, or width or something else, but I've done
> > it both under transitional and strict doctypes with fully-validating
> > pages.
>
> I wouldn't expect anything else :-)
>
> > Basically, the trick was to put a div in another overflow-auto
> > div. Maybe the inner div expanded with content, but that had no height
> > setting. Also, maybe width differs reactively from height (-though I
> > don't think so.)
>
> I'm still not sure what the actual objective of your hack was though.
> Were you trying to make IE expand a div's height based on the content?
> Or were you trying to do the opposite, and make IE honour the set
> height and have the content scroll?

The latter - have the div scroll in order to place a "fixed" top
section. It works, but there are a few other problems relating to the
volatile absence or presence of the side scrollbar. Here's an example
(-which needs javascript so I could include both "normal" and "IE" modes
although the same could be done non-jsish using something like php.)

http://www.neredbojias.com/delta/strozzi.html

--
Neredbojias
Contrary to popular belief, it is believable.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация