Results 1 to 4 of 4

Thread: "expand" area to show hidden object

  1. #1

    Thread Starter
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945

    "expand" area to show hidden object

    I have a div that is hidden until someone checks a checkbox. The problem is, it leaves a big white space while that div is hidden. How do I make it so that the content under the hidden box fits neatly under the content that is showing, and then after they check the box, everything shifts to make room for the hidden div??

    I have no idea where to start with this, but I've seen something similar when downloading the latest Acrobat Reader.
    format your code!! - [vbcode] [/vbcode]

    ANSWERS CAN BE FOUND HERE!!

    my personal company

  2. #2
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090
    instead of:
    visibility: hidden
    and:
    visibility: visible
    use:
    display: none
    and (not sure on this one):
    display: inline

    It might not be inline, it could be normal or block too. just test and see what it is.
    Have I helped you? Please Rate my posts.

  3. #3
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    Div is generally a block element, so you might want to set it display: block;
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  4. #4
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090
    Thanks for that one Jop
    Have I helped you? Please Rate my posts.

Posting Permissions

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



Click Here to Expand Forum to Full Width