Simple Tabs CSS & jQuery – Easy Tab Tutorial with CSS and jQuery
I know there are quite a few tutorials out there that demonstrate how to create tabs with CSS & jQuery, but I decided to create my own as well. I’m not sure if the techniques are the same, but hopefully this tutorial will be easy to understand even for a beginner.
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”> <html xmlns=”http://www.w3.org/1999/xhtml” xml:lang=”en” lang=”en”> <head> <title>Spacegallery</title> <link rel=”stylesheet” media=”screen” type=”text/css” href=”css/layout.css” /><!–Tab Use css –> <script type=”text/javascript” src=”js/jquery.js”></script> <script type=”text/javascript” src=”js/eye.js”></script> <script type=”text/javascript” src=”js/layout.js”></script> </head> <body> <div class=”wrapper”> <h1>Spacegallery</h1> <ul class=”navigationTabs”> <li><a href=”#about” rel=”about”>About</a></li> <li><a href=”#download” rel=”download”>Download</a></li> <li><a href=”#implement” rel=”implement”>Implement</a></li> </ul> <div class=”tabsContent”> <div class=”tab”> <h2>About</h2> <p>Again another image gallery. Click on the images bellow to see it in action.</p> </div> <div class=”tab”> <h2>Download</h2> <p><a href=”spacegallery.zip”>spacegallery.zip (205 kb)</a>: jQuery, Javscript files, CSS files, images, examples and instructions.</p> </div> <div class=”tab”> <h2>Demo Demo </h2> </div> </div> </div> </body> </html>