Results 1 to 3 of 3

Thread: Chrome css menu- display: none instead of visibility hidden

  1. #1
    Join Date
    Aug 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Chrome css menu- display: none instead of visibility hidden

    Just wondering if this script could be modified to use display: none/display: block in place of visibility: hidden/visibility: visible?

    I am using some very large submenus that are placed at the bottom of my code- and while they are not visible, they do create a lot of empty white-space at the bottom of the page.

    Thanks for any help- obviously not a huge issue, but it would look better if possible.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    There's no need. Just give the offending menu a "left" or "top" attribute to make sure it doesn't create any white space, something like:

    Code:
    <div id="dropmenu1" class="dropmenudiv" style="left: -1000px; top: -1000px" >
    <a href="http://www.dynamicdrive.com/">Dynamic Drive</a>
    <a href="http://www.cssdrive.com">CSS Drive</a>
    <a href="http://www.javascriptkit.com">JavaScript Kit</a>
    </div>
    That should do it.

  3. #3
    Join Date
    Aug 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    works perfectly- thanks!

Bookmarks

Posting Permissions

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