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 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Feb 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Big bug in gecko enable browsers!

    Hi!
    I've noticed a big bug in gecko browsers i.e Firefox.

    Try this and you will notice that the scrollbar shows even though the div is hidden. Solutions?? Suggestens?? The only solutions I got is thatyou have to leave the size NULL and in the function that toggles visibility you have to set the size propety.

    <div style="visibility: hidden">
    <select size="4">
    <option value="">Option 1</option>
    <option value="">Option 1</option>
    <option value="">Option 1</option>
    <option value="">Option 1</option>
    </select>
    </div>

    What is the CSS equivalent of attribute SIZE in a select????

    Thanks

    //Sara

  • #2
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    Use "display: none" instead of "visibility: hidden"

    P.S. I don't think there is a "size" equivalent in CSS... it's valid anyhow if you need to use it

    P.P.S. Welcome to the forums
    Last edited by rmedek; 02-02-2005 at 10:41 AM.

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,253
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Hidden <> gone

    No bug; "visibility: hidden;" means the element is not visible; it does however take up the same room in the document flow as if it were, including a scrollbar.
    As Richard (rmedek) already indicated, to remove an element from the flow completely, use "display: none;".
    Regards,
    Ronald.
    ronaldvanderwijden.com

  • #4
    New to the CF scene
    Join Date
    Feb 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You are right! It works.
    Thanks a lot. I sure looked like a bug because it was not visible in some browsers but in others and only when you put the size propety of a select box.

    Well thanks again!

    /Sara


  •  

    Posting Permissions

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