SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Enthusiast
    Join Date
    Dec 2004
    Location
    London
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Visible/Invisible DIVS

    Hello,

    I've seen on some sites (but cannot think of any now to give as example) when there is a text link on a page somewhere. When the user clicks on the link a box/content appears immediately without appearing to reload the page.

    In essence it seems that the element (whether a DIV, form, etc) has been on the page initially, but hidden from view. Clicking on the visible text link then makes the element visible.

    Do you know what I mean, and if so are you able to point me to any tutorials or examples of this working because I think it'd make a really nice addition to my site in the form of a help section - there is a link to 'help' and when pressed a sidebar immediatley becomes visible.

    Thanks for your help

    Ben

  2. #2
    With More ! for your $ maxor's Avatar
    Join Date
    Feb 2004
    Location
    Scottsdale, Arizona
    Posts
    909
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Take a look at this All In the Head article

  3. #3
    Winemaster bronze trophy BonRouge's Avatar
    Join Date
    Oct 2004
    Location
    Sendai, Japan
    Posts
    2,417
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Or see if this is any use.

  4. #4
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    39,789
    Mentioned
    158 Post(s)
    Tagged
    3 Thread(s)
    Off Topic:


    Hi Bon Rouge,

    Nice site
    We can also use 'overflow:hidden' to erm... actually, I'm not really sure why that's necessary.
    The overflow:hidden is for IE because it won't render an element less than the current font-size/line-height. Setting overflow:hidden reduce the height to 1px as per other browsers and therefore does not interfere with anything else

    Keep up the good work

    Paul


  5. #5
    Winemaster bronze trophy BonRouge's Avatar
    Join Date
    Oct 2004
    Location
    Sendai, Japan
    Posts
    2,417
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks a lot . You learn something new every day, eh? (I'm going to quote that if you don't mind).

  6. #6
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    39,789
    Mentioned
    158 Post(s)
    Tagged
    3 Thread(s)
    Help yourself We're all here to learn anyway


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
  •