Tuesday, August 20, 2013

CSS visibility hidden

<html>
<head>
<style type="text/css">
h1.hidden {visibility:hidden}
</style>
</head>

<body>
<h1>This is a visible heading</h1>
<h1 class="hidden">This is a hidden heading</h1>
<p>Notice that the hidden heading still takes up space.</p>
</body>

</html>

Result


No comments: