Collapsible Panels This tutorial requires the jquery
framework. The collapsible panels can be a great platform for a portfolio
website so lets have a go at making one <div id="wrapper"> the dots represent filler text just
do this bit last and put in any text you want, in the example I have used a
filler text generator. body All we our doing is just giving the
panels and the content some styling to make it look nice. the width and height
maybe odd numbers but its because when we total it with the padding and border
it becomes the same width as the wrapper and the height I want a normal number
in total. $(document).ready(function(){ When the document is ready the the first panelContent class slides down. When the panel is clicked all panelContent classes slide up and then based upon which is pressed a panelContent class slides down. This works by finding the next panelContent class from the panel clicked. |