OGGordon
11-07-2009, 11:33 AM
Hi guys,
I want to add 3 sections to my content area, however it doesn't show right.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Title Here</title>
<style>
body { margin:0; background:#e5e5e5 url(bg.gif) repeat-x; }
#top-wrap { width:100%; }
#header { width:960px; margin:0 auto; height:85px; }
#nav { width:960px; margin:0 auto; height:69px; font-family: tahoma; font-weight: bold; font-size: 18px; color: white; }
#wrap { width:100%; }
.bg1 { width:980px; margin:0 auto; background: url(shd.png) repeat-y; }
#middle { width:960px; margin:0 auto; background: #fff; }
#left { width: 200px; float: left }
#center { width: 560px; float: left }
#right { width: 200px; float: left }
#footer-wrap { width:100%; background: #c5c5c5; }
#footer { width:960px; margin:0 auto; }
#home { height: 20px; width: 50px; float: left; margin-left: 25px; margin-right: 5px; margin-top: 15px; }
#anzeige { height: 20px; width: 160px; float: left; margin-left: 5px; margin-right: 5px; margin-top: 15px; }
#forum { height: 20px; width: 50px; float: left; margin-left: 5px; margin-right: 5px; margin-top: 15px; }
#hilfe { height: 20px; width: 50px; float: left; margin-left: 5px; margin-right: 5px; margin-top: 15px; }
#faq { height: 20px; width: 50px; float: left; margin-left: 5px; margin-right: 5px; margin-top: 15px; }
#Tipps { height: 20px; width: 50px; float: left; margin-left: 5px; margin-right: 5px; margin-top: 15px; }
#agb { height: 20px; width: 50px; float: left; margin-left: 5px; margin-right: 5px; margin-top: 15px; }
#privacy { height: 20px; width: 50px; float: left; margin-left: 5px; margin-right: 5px; margin-top: 15px; }
#contact { height: 20px; width: 50px; float: left; margin-left: 5px; margin-right: 5px; margin-top: 15px; }
</style>
</head>
<body>
<div id="top-wrap">
<div id="header">
header.
</div>
<div id="nav">
<div id="home">
home
</div>
<div id="anzeige">
anzeige eintragen
</div>
<div id="forum">
forum
</div>
<div id="hilfe">
hilfe
</div>
<div id="faq">
FAQ
</div>
<div id="Tipps">
tipps
</div>
<div id="contact">
kontakt
</div>
</div>
</div>
<div id="wrap">
<div class="bg1">
<div id="middle">
<div id="left">
left area
</div>
<div id="center">
center area
</div>
<div id="right">
right area
</div>
</div>
</div>
<div id="footer-wrap">
<div class="bg1">
<div id="footer">
This is the footer.
</div>
</div>
</div>
</body>
</html>
here is a live version: http://derderder.cwsurf.de/
Am I doing it right? With the divs under divs to create each section?
I want to add 3 sections to my content area, however it doesn't show right.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Title Here</title>
<style>
body { margin:0; background:#e5e5e5 url(bg.gif) repeat-x; }
#top-wrap { width:100%; }
#header { width:960px; margin:0 auto; height:85px; }
#nav { width:960px; margin:0 auto; height:69px; font-family: tahoma; font-weight: bold; font-size: 18px; color: white; }
#wrap { width:100%; }
.bg1 { width:980px; margin:0 auto; background: url(shd.png) repeat-y; }
#middle { width:960px; margin:0 auto; background: #fff; }
#left { width: 200px; float: left }
#center { width: 560px; float: left }
#right { width: 200px; float: left }
#footer-wrap { width:100%; background: #c5c5c5; }
#footer { width:960px; margin:0 auto; }
#home { height: 20px; width: 50px; float: left; margin-left: 25px; margin-right: 5px; margin-top: 15px; }
#anzeige { height: 20px; width: 160px; float: left; margin-left: 5px; margin-right: 5px; margin-top: 15px; }
#forum { height: 20px; width: 50px; float: left; margin-left: 5px; margin-right: 5px; margin-top: 15px; }
#hilfe { height: 20px; width: 50px; float: left; margin-left: 5px; margin-right: 5px; margin-top: 15px; }
#faq { height: 20px; width: 50px; float: left; margin-left: 5px; margin-right: 5px; margin-top: 15px; }
#Tipps { height: 20px; width: 50px; float: left; margin-left: 5px; margin-right: 5px; margin-top: 15px; }
#agb { height: 20px; width: 50px; float: left; margin-left: 5px; margin-right: 5px; margin-top: 15px; }
#privacy { height: 20px; width: 50px; float: left; margin-left: 5px; margin-right: 5px; margin-top: 15px; }
#contact { height: 20px; width: 50px; float: left; margin-left: 5px; margin-right: 5px; margin-top: 15px; }
</style>
</head>
<body>
<div id="top-wrap">
<div id="header">
header.
</div>
<div id="nav">
<div id="home">
home
</div>
<div id="anzeige">
anzeige eintragen
</div>
<div id="forum">
forum
</div>
<div id="hilfe">
hilfe
</div>
<div id="faq">
FAQ
</div>
<div id="Tipps">
tipps
</div>
<div id="contact">
kontakt
</div>
</div>
</div>
<div id="wrap">
<div class="bg1">
<div id="middle">
<div id="left">
left area
</div>
<div id="center">
center area
</div>
<div id="right">
right area
</div>
</div>
</div>
<div id="footer-wrap">
<div class="bg1">
<div id="footer">
This is the footer.
</div>
</div>
</div>
</body>
</html>
here is a live version: http://derderder.cwsurf.de/
Am I doing it right? With the divs under divs to create each section?