No Scrollbars in Standard Compliant Browsers
Disable scrollbars for both standard and non-standard compliant browsers.
Copy to Clipboard |
View Code In Action
|
Back
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
<title>Strict DOCTYPE with no scrollbars</title>
<style type="text/css">
body{margin:0; margin-top:180px; background:black; color:white; border:0; overflow:hidden; font: 13px Verdana, Arial;}
img{border:none; margin:100px;}
</style>
</head>
<body scroll="no">
<h1>Strict DOCTYPE with no scrollbars
</h1>
<p><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
</p>
<p>The overflow:hidden style is for standard compliant browsers.
</p>
<p>On the body element, scroll="no" is for non standard compliant browsers.
</p>
<p><img src="/kwwmedia/KioWare_logo_1024wide.png" alt="KioWare logo"></p>
</body>
</html>