Hi there,
I'm working on a website which has a thumbnail navigation on it's about us page, and for each person you click their profile is displayed inside the same box. Then by clicking "close" at the bottom of the profile it takes you back to the thumbnails.
So far I have the following divs...
<div class="container">
<div class="thumbnails"></div>
<div id="profile-1"></div>
<div id="profile-2"></div>
<div id="profile-3"></div>
<div id="profile-4"></div>
<div>
Inside the div named "people" I have...
<ul>
<li class="thumbnail-1"><a href="#">Profile 1</a></li>
<li class="thumbnail-2"><a href="#">Profile 2</a></li>
<li class="thumbnail-3"><a href="#">Profile 3</a></li>
<li class="thumbnail-4"><a href="#">Profile 4</a></li>
</ul>
My thinking was to position all divs absolutely so they are on top of one another and then hide all profiles on document load.
Then when a thumbnail is clicked bind a display: block and z-index: 100 to the corresponding profile forcing the profile to display on top of the thumbnails.
My question is would this be the best way to do this? What jquery would I need to generate this behavior so that it removes the css properties created when the close button is clicked?
Many thanks for your time and help.