The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Changing DIV on clicked Link

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #38364

    My idea is such: On my about page I would like to have a container whose content (a couple of paragraphs) can change based on a selected link, but I don’t want the whole page to reload, or the container to resize. Just the text change. Does this make sense and is there an easy way to do this using CSS or a jQuery plugin? I saw two examples on this site, but they weren’t precisely the same…


    This works great, but how can you make it so if you click another link it goes back to the old content? Sort of like tabs..

    Thanks a bunch.


    Tabs are actually built into the jquery ui library:

    Probably don’t need all of that if this is the only thing you will be using, but theres some other stuff in there that could be helpful if you are a jquery beginner and are looking to add some interesting ui elements to sites.


    Conveniently this is a bit of JavaScript i know that allows you to replace content with onclick. I created this pen for you.[PEN]( “”)

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.