Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-07-2002, 01:07 PM   PM User | #1
kathryn
New Coder

 
Join Date: Oct 2002
Location: Ireland
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
kathryn is an unknown quantity at this point
div tags

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.
kathryn is offline   Reply With Quote
Old 11-07-2002, 01:47 PM   PM User | #2
MCookie
Regular Coder

 
Join Date: Jun 2002
Location: NL
Posts: 421
Thanks: 0
Thanked 0 Times in 0 Posts
MCookie is an unknown quantity at this point
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

Last edited by MCookie; 11-07-2002 at 01:55 PM..
MCookie is offline   Reply With Quote
Old 11-07-2002, 02:30 PM   PM User | #3
kathryn
New Coder

 
Join Date: Oct 2002
Location: Ireland
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
kathryn is an unknown quantity at this point
Thanks for that!!
Kathryn
kathryn is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

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

Forum Jump


All times are GMT +1. The time now is 01:01 AM.


Advertisement
Log in to turn off these ads.