JeroenHulshof
Gebruiker
- Lid geworden
- 13 dec 2012
- Berichten
- 43
Beste mensen van HelpMij!
Ik zit met een probleem.
Ik heb aan de linker kant een "box" met wat text erin.
Nu wil ik dat ik aan de rechterkant nog een box krijg. Ik heb alleen geen idee.
Ik werk in #containers, want zo blijft alles mooi op z'n plek op elk beeldscherm, (13 inch 22 inch etc). Graag hoor ik van jullie.
Live demo: demo
Dit is mijn code:
CSS:
Html:
Hopelijk weten jullie hoe dit moet
Met vriendelijke groeten,
Jeroen Hulshof
Ik zit met een probleem.
Ik heb aan de linker kant een "box" met wat text erin.
Nu wil ik dat ik aan de rechterkant nog een box krijg. Ik heb alleen geen idee.
Ik werk in #containers, want zo blijft alles mooi op z'n plek op elk beeldscherm, (13 inch 22 inch etc). Graag hoor ik van jullie.
Live demo: demo
Dit is mijn code:
CSS:
Code:
@charset "UTF-8";
/* CSS Document */
body{
background-image: url('./../images/background.png');
background-repeat: no-repeat;
background-position: center center;
background-attachment: fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
font-family: Helvetica, sans-serif;
}
#container{
width: 960px;
height: auto;
margin: auto;
margin-top: 5px;
}
#container header{
height: 150px;
text-align: center;
border: 5px solid #000000;
}
#container #top-menu{
height: 50px;
width: 950px;
background-image: url('./../images/nav.png');
border: 5px solid #000000;
}
#container #top-menu ul{
margin: 0;
padding: 0;
text-align: center;
}
#container #top-menu ul li{
display: inline-block;
zoom: 1;
*display: inline;
list-style: none;
float: center;
}
#container #top-menu ul li a{
display: inline-block;
zoom: 1;
*display: inline;
padding: 0 20px;
line-height: 50px;
text-decoration: none;
color: #FFFFFF;
font-size: 22px;
}
#container #top-menu ul li a:hover{
background-color: #C0C0C0;
}
#main-content{
margin-bottom: 15px;
border-top: none;
}
#newsbox{
width: 500px;
height: 10px;
padding: 10px 5px;
margin-top: 10px;
background-image: url('./../images/boxbackground.png');
border: 5px solid #000000;
text-align: center;
line-height: 17px;
color: #FFFAF0;
}
#news{
width: 500px;
height: auto;
padding: 10px 5px;
margin-top: 7px;
background-color: #696969;
border: 5px solid #000000;
text-align: left;
color: #FFFAF0;
}
#newsbox p{
margin: 0;
padding: 0;
}
.container-sub{
width: 940px;
height: 10px;
margin: auto;
margin-top: 5px;
padding: 10px 5px;
background-image: url('./../images/boxbackground.png');
border: 5px solid #000000;
}
footer{
text-align: center;
}
footer p{
margin: 0;
}
Html:
Code:
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Endercraft.nl</title>
<link rel="stylesheet" href="./assets/styles/normalize.min.css">
<link rel="stylesheet" href="./assets/styles/main.css">
</head>
<body>
<div id="container">
<header>
<img src="./assets/images/banner.png" alt="Banner" width="950" height="150">
</header>
<nav id="top-menu">
<ul>
<li><a href="http://www.endercraft.nl/index.html" title="Menu Item #1">Home</a></li>
<li><a href="http://www.endercraft.nl/ecforum/" title="Menu Item #2">Forum</a></li>
<li><a href="http://www.endercraft.nl/staffs" title="Menu Item #3">Staffs</a></li>
<li><a href="http://endercraft.nl//ecforum/index.php?action=register" title="Menu Item #4">Registreren</a></li>
<li><a href="http://www.endercraft.nl/vote" title="Menu Item #5">Vote</a></li>
<li><a href="http://endercraftnl.buycraft.net/category/view/" title="Menu Item #5">Doneren</a></li>
</ul>
</nav>
<div id="newsbox">
<p>NIEUWS:</p>
</div>
<div id="news">
<p>
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).
</p>
</div>
<footer class="container-sub">
<p>© 2012 - Endercraft.nl, All rights reserved.</p>
</footer>
</div>
</body>
</html>
Hopelijk weten jullie hoe dit moet

Met vriendelijke groeten,
Jeroen Hulshof