Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: div tags

  1. #1
    New Coder
    Join Date
    Oct 2002
    Location
    Ireland
    Posts
    39
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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.

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    NL
    Posts
    421
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #3
    New Coder
    Join Date
    Oct 2002
    Location
    Ireland
    Posts
    39
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for that!!
    Kathryn


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •