SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict lundberg's Avatar
    Join Date
    Mar 2003
    Location
    Sweden
    Posts
    370
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Collaps and uncollaps a div?

    Hello sitepointers!

    I want to make a Like menu that has a head and a body. In the body are the links to the different sections. In the head is the title and a picture that you can click on. When you click on that image the body collaps (disapears) and the image change to another image. Clicking the new image uncollaps the body and the menu is shown again. The head should ofcourse be visible all the time (the head is where the collaps image is).

    Can I do this? I think I've seen it somewhere.

    Thanks in advance!

    Martin Lundberg
    Sweden

  2. #2
    SitePoint Addict lundberg's Avatar
    Join Date
    Mar 2003
    Location
    Sweden
    Posts
    370
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Guess it's not that easy...maybe it's not a css problem?

    Martin Lundberg
    Sweden

  3. #3
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,484
    Mentioned
    182 Post(s)
    Tagged
    6 Thread(s)
    Hi,

    You'd really need some sort of javascript routines for that so it's not really a CSS question.

    Have a look at the techniques used in the suckerfish menus and you should be able to work something out.

    http://www.alistapart.com/articles/dropdowns/

    Paul


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
  •