...

View Full Version : div tags



kathryn
11-07-2002, 01:07 PM
Hi,
I am using an image map to call hidden div tags to show a drop down mouseover menu.
However the div tags are hidden from the users view blank space to the right of my web page appears and when I view the source of the code the div tags are to the right of the image map and therefore make my page wider than 600 pixels which means a horizontal scroll bar appears.
Is there a way of stopping the scroll bar and blank space from appearing as the user should never need to scroll to the right.

MCookie
11-07-2002, 01:47 PM
Hi,

Are you using the "visibility" property to hide your divs? That makes the divs "transparent", but still taking space on your page.

You should use the "display" property. When you hide a div with display:none; no space is taken.

<edit> A link..
http://www.xs4all.nl/~ppk/js/blockinvi.html

kathryn
11-07-2002, 02:30 PM
Thanks for that!!
Kathryn



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum