Okay, so I am pulling posts from a database, and I want to have two ways that visitors can view the data being pulled: gallery, and list view. So, I was first going to use tabs, but ended up not working good at all cause it was causing probs with search results and stuff when pulling the same content twice. So thought this idea might be better. It's kind of the same concept as tabs... it will just work differently...
Basically I want to have two links: 1.) Gallery View 2.) List View
When people land on the page all the data being pulled will be inside a div called "gallery", When people click on the "list view" link, I want the "gallery" class to change to "list" without reloading the page. And then when they click "Gallery View" again, it will then change the "list" class to "gallery" class again... It's just like tabs... the only difference is that we're working with one set of content. and instead of switching tabs... we're switching css classes on click.
This way I can edit the way the content is displayed through css.
Can this be done?