SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Guru
    Join Date
    Apr 2007
    Posts
    690
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Is there css that can do this?

    I'm looking for css, that can do something like below:


    http://www.dynamicdrive.com/dynamici...jaxcontent.htm

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,237
    Mentioned
    194 Post(s)
    Tagged
    2 Thread(s)

    layout?

    Do you mean the 2 column layout with header and footer?

  3. #3
    SitePoint Guru
    Join Date
    Apr 2007
    Posts
    690
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I mean that when you click the link, different content pops up. But I just wanna use pure css?

  4. #4
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,476
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nope. This is squarely in the realm of behavior, rather than appearance, which is where JavaScript thrives.

    HTML (Structure), CSS (Appearance), JavaScript (Interaction)

  5. #5
    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,

    As Dan said this is really a behaviour that should be handled preferably serverside (or ajax etc) and is rarely useful other than for small amounts of content. If you use the method for a whole site you end up with a non-site because it is only there when the the script creates it.

    You can actually trick css in to doing something similar but its not advised and won't work everywhere.

    e.g.

    http://www.pmob.co.uk/temp/hideandshow2-css.htm

    The drawback of javascript and the css methods is that all content has to reside in the page unlike the ajax script which loads just the content from the server.


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
  •