hier een voorbeeld hoe het ook kan,
In dit voorbeeld zijn HTML tags gebruikt die beter bij de content passen.
h1 belangrijkste header
h3 minder belangrijke header
p voor paragraaf
a in de header ook te gebruiken als home button
de h1 bevat text zodat zoekmachines en mensen die geen plaatjes downloaden ook weten waar het over gaat.
wrapper: om alles te centreren, had ook met de body tag gekunt, aangezien deze binnen de html tag valt.
Dn dan de divjes om de secties te scheiden.
<!DOCTYPE html>
<html lang="nl">
<head>
<meta charset="utf-8" />
<title>Logopedia nieuwsbrief2</title>
<style type="text/css" media="screen">
* {
margin: 0;
padding: 0;
}
html, body
{
height: 100%;
font-family: "Arial",verdana,Sans-Serif;
}
div#wrapper
{
width: 902px;
position: relatvie;
margin: 0 auto;
}
div#wrapper > h1
{
background: url('http://www.logopedia.be/css/images/logopedia-header.png') no-repeat;
height: 120px;
width: 902px;
margin: 20px 0;
}
div#wrapper > h1 > a
{
background: url('http://www.logopedia.be/css/images/logo.png') no-repeat;
display: block;
height: 114px;
width: 158px;
text-indent: -5000px;
margin: 0 0 0 20px;
}
div#wrapper > div {
background: url('http://www.logopedia.be/css/images/frame_bottom.png') no-repeat center bottom;
padding: 0 0 14px 0;
margin: 0 0 20px 0;
}
div#wrapper > div > h3 {
background: url('http://www.logopedia.be/css/images/frame_top.png') no-repeat;
color: #FFF;
height: 30px;
line-height: 30px;
padding: 0 20px;
}
div#wrapper > div > p {
background: url('http://www.logopedia.be/css/images/frame_bg.png') repeat-y;
padding: 5px 20px 0 20px;
}
</style>
</head>
<body>
<div id="wrapper">
<h1>
Logo Pedia
</h1>
<div>
<h3>NIEUWSBRIEF INFO</h3>
<p>Some text</p>
</div>
<div>
<h3>NIEUWSBRIEF INFO</h3>
<p>Some text</p>
</div>
<div>
<h3>NIEUWSBRIEF INFO</h3>
<p>Some text</p>
</div>
</div>
</body>
</html>