<style type="text/css"> .question { cursor:default; display:block; width:500px; } .answer { display:none; width:500px; padding: 2 0 5 0; } .container{ display:block; } </style>You can add other style attributes such as font in there too. You can change the settings in the styles above, but these give the best look.
<script language="javascript" type="text/javascript" src="qa.js"></script>
<div class="container"> <div class="question"> Your question goes here... </div> <div class="answer"> Your answer goes here... </div> </div>The class names are the ones in the style-sheet code in step 1.
<a href="javascript:expandall()">Expand All</a> <a href="javascript:collapseall()">Collapse All</a>This is how the links near the top of the page work.