<html>
<head>
<title>Abakada CSS Demo: display Attribute</title>
<link rel="stylesheet" href="/shared/netdemos.css">
<style type="text/css">
<!--
.hide { display: none }
.show { display: block }
-->
</style>
</head>
<body>
<!-- #include virtual="~/shared/top.inc" -->
<div class="header"><h2>Abakada CSS Demo: display Attribute</h3></div>
<hr size=1 width=92%>
<center>
<p id="msg">This example shows how the CSS <b>display</b> attribute can be used to dynamically show or
hide content. </p>
<button onclick="theDiv.className='show'">Show</button>
<button onclick="theDiv.className='hide'">Hide</button>
<br>
<div id="theDiv" class="hide">
<table border>
<tr>
<td><img src="../shared/images/jupiter.gif"
height=100 width=100 border=0 alt="Jupiter"></td>
<td><img src="../shared/images/uranus.gif"
height=100 width=100 border=0 alt="Uranus"></td>
</tr>
</table>
<h5>Notice that, unlike the <b>visibility</b> style attribute, the physical space is not preserved when the display is set to <i>none</i>.</h5>
</div>
</center>
<hr size=1 width=92%>
<!-- #include virtual="~/shared/viewsrc.inc" -->
</body>
</html>