HighDots Forums  

What happens when width and height are '0px'?

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss What happens when width and height are '0px'? in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
ohaya
 
Posts: n/a

Default What happens when width and height are '0px'? - 05-01-2004 , 11:35 AM






Hi,

I was wondering what happens when width and height in a style (e.g., in
a DIV) are set to '0px'? For example something like:

style="position: absolute; width: 0px; height: 0px;"

Thanks,
Jim

Reply With Quote
  #2  
Old   
Harlan Messinger
 
Posts: n/a

Default Re: What happens when width and height are '0px'? - 05-01-2004 , 01:04 PM






ohaya <ohaya_NO_SPAM (AT) NO_SPAM_cox (DOT) net> wrote:

Quote:
Hi,

I was wondering what happens when width and height in a style (e.g., in
a DIV) are set to '0px'? For example something like:

style="position: absolute; width: 0px; height: 0px;"
Try it and see?

--
Harlan Messinger
Remove the first dot from my e-mail address.
Veuillez ๔ter le premier point de mon adresse de courriel.


Reply With Quote
  #3  
Old   
ohaya
 
Posts: n/a

Default Re: What happens when width and height are '0px'? - 05-01-2004 , 01:57 PM





Harlan Messinger wrote:
Quote:
ohaya <ohaya_NO_SPAM (AT) NO_SPAM_cox (DOT) net> wrote:

Hi,

I was wondering what happens when width and height in a style (e.g., in
a DIV) are set to '0px'? For example something like:

style="position: absolute; width: 0px; height: 0px;"

Try it and see?


Harlan,

I think that I've kind of figured out what's going on.

It turns out that there was an 'onload' event handler that was suppose
to resize the area from the 'width: 0px; height: 0px;" when the onload
event fired. I had missed it .

The problem that I'm still trying to work out is that when the 'content'
in the area is 'large' (I haven't figured out exactly how large yet, but
a 7MB content does it), and when IE6 is the browser, the page with the
'width: 0px; height: 0px;" seems to hang (I actually ran a test
overnight earlier - CPU utilization was 100% on the client), so it seems
like it was never getting to fire the onload event.

Setting 'width: 1px; height: 1px;' seems to get it working again, but
I'm curious if anyone has ever run across this problem before. Is it a
known problem with IE6?

Thanks,
Jim


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.