34,333
edits
Changes
→Making Basic Dynamic Style Changes
</pre>
== Hiding and Showing Content suing JavaScript ==
The next step is to look at how to hide and show contents using CSS and JavaScript. First lets create some paragraphs of text in HTML:
<pre>
<p id="layer1">This is layer 1</p>
<p id="layer2">This is layer 2</p>
<p id="layer3">This is layer 3</p>
</pre>
Next we need to define some styles for these layers so that we can distinguish between them (for details on CSS see [[Understanding Cascading Style Sheets (CSS)]]: