<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<title>Eigen Site</title>
</head>
<body>
<div id="container">
<div id="header">
<div class="logo">
</div>
<i><p class="TijsVerbeek">© 2013 Tijs Verbeek</p></i>
</div>
<div id="navmenu">
<div class="navmenu">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Webhosting</a></li>
<li><a href="#">VPS</a>
<ul>
<li><a href="#">Minecrapt VPS</a></li>
<li><a href="#">Cloudbox VPS</a></li>
</ul>
</li>
<li><a href="#">Alle Producten</a></li>
</ul>
</div>
</div>
<div id="body">
<div class="box1">
</div>
</div>
</div>
</body>
</html>
#container {
width: 100%;
max-width: 100%;
}
#header {
position: absolute; top: 0px; left: 0px;
width: 100%;
height: 100px;
background: #fcfcfc;
}
.logo {
position: absolute; top: 10px; left: 50px;
height: 75px;
width: 250px;
border: 1px solid #000;
background: #fcfcfc;
}
.TijsVerbeek {
position: absolute; top: 15px; left: 1000px;
}
#navmenu {
position: absolute; top: 100px; left: 0px;
width: 100%;
height: 60px;
background: #333;
}
.navmenu {
position: absolute; top: 0px; left: 250px;
width: 100%;
height: 60px;
}
.navmenu {
margin: 0;
padding: 0;
z-index: 100;
}
.navmenu ul {
margin: 0;
padding: 0;
list-style: none;
line-height: 60px;
}
.navmenu li {
margin: 0;
padding: 0;
float: left;
position: relative;
list-style: none;
height: 60px;
text-align: center;
}
.navmenu ul li a {
text-align: center;
font-family: Arial;
text-decoration: none;
height: 60px;
width: 150px;
display: block;
background: #333;
color: #fff;
}
.navmenu ul ul {
position: absolute;
visibility: hidden;
}
.navmenu ul li:hover {
background: #ccc;
}
.navmenu ul li:hover ul {
visibility: visible;
}
.navmenu ul li:hover ul li a:hover {
background: #CCC;
color: #000;
}
.navmenu a:hover {
color: #fff;
background: #999;
}
#body {
position: absolute; top: 160px; left: 0px;
background: #fcfcfc;
width: 100%;
height: 1000px;
}
.box1 {
position: absolute; top: 20px; left: 50px;
background: #ecf2f6;
width: 200px;
height: 400px;
border: 1px solid #000;
}
Dit is een HTML en een CSS bestand.
Onderaan deze pagina heb ik een scroll balk, hoe zorg ik dat deze scrollbalk weggaat?
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<title>Eigen Site</title>
</head>
<body>
<div id="container">
<div id="header">
<div class="logo">
</div>
<i><p class="TijsVerbeek">© 2013 Tijs Verbeek</p></i>
</div>
<div id="navmenu">
<div class="navmenu">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Webhosting</a></li>
<li><a href="#">VPS</a>
<ul>
<li><a href="#">Minecrapt VPS</a></li>
<li><a href="#">Cloudbox VPS</a></li>
</ul>
</li>
<li><a href="#">Alle Producten</a></li>
</ul>
</div>
</div>
<div id="body">
<div class="box1">
</div>
</div>
</div>
</body>
</html>
#container {
width: 100%;
max-width: 100%;
}
#header {
position: absolute; top: 0px; left: 0px;
width: 100%;
height: 100px;
background: #fcfcfc;
}
.logo {
position: absolute; top: 10px; left: 50px;
height: 75px;
width: 250px;
border: 1px solid #000;
background: #fcfcfc;
}
.TijsVerbeek {
position: absolute; top: 15px; left: 1000px;
}
#navmenu {
position: absolute; top: 100px; left: 0px;
width: 100%;
height: 60px;
background: #333;
}
.navmenu {
position: absolute; top: 0px; left: 250px;
width: 100%;
height: 60px;
}
.navmenu {
margin: 0;
padding: 0;
z-index: 100;
}
.navmenu ul {
margin: 0;
padding: 0;
list-style: none;
line-height: 60px;
}
.navmenu li {
margin: 0;
padding: 0;
float: left;
position: relative;
list-style: none;
height: 60px;
text-align: center;
}
.navmenu ul li a {
text-align: center;
font-family: Arial;
text-decoration: none;
height: 60px;
width: 150px;
display: block;
background: #333;
color: #fff;
}
.navmenu ul ul {
position: absolute;
visibility: hidden;
}
.navmenu ul li:hover {
background: #ccc;
}
.navmenu ul li:hover ul {
visibility: visible;
}
.navmenu ul li:hover ul li a:hover {
background: #CCC;
color: #000;
}
.navmenu a:hover {
color: #fff;
background: #999;
}
#body {
position: absolute; top: 160px; left: 0px;
background: #fcfcfc;
width: 100%;
height: 1000px;
}
.box1 {
position: absolute; top: 20px; left: 50px;
background: #ecf2f6;
width: 200px;
height: 400px;
border: 1px solid #000;
}
Dit is een HTML en een CSS bestand.
Onderaan deze pagina heb ik een scroll balk, hoe zorg ik dat deze scrollbalk weggaat?