PHP interesse |
|
ik heb geprobeerd met divs te floaten mijn layout te verwerken, alleen het werkt niet helemala zoals bedoeld. Volgens mij kan ik beter gaan poisitioneren want dit lukt niet echt, kan iemand mij hierbij helpen:
ik heb mijn volgende layout:
http://www.g0dlike.nl/files/image_1.jpg
mijn uitkomst is met divs dit, maar de grijze balk waar LEFT staat, moet dus onder de wolken komen aan de linkerkant.....
http://www.g0dlike.nl/files/image_2.jpg
css code:
body {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #333333;
background-color: #FFFFFF;
background-image: url(images/bg_repeat.gif);
background-repeat: repeat-x;
margin: 0px;
}
/* ----------------- MAIN DIVS ----------------- */
#main_container {
width: 960px;
background-color: #FFFFFF;
margin: 0px;
}
#container {
width: 900px;
background-color: #FFFFFF;
margin: 0px;
float: left;
}
#bg_left {
width: 30px;
background-image: url(images/bg_left_repeat.gif);
background-repeat: repeat-y;
float: left;
}
#bg_right {
width: 30px;
background-image: url(images/bg_right_repeat.gif);
background-repeat: repeat-y;
float: left;
}
/* ------------------ IMGAGES ------------------ */
#design_logo {
width: 300px;
height: 370px;
background-image: url(images/design_logo.gif);
background-repeat: no-repeat;
float: left;
}
#design_menu {
width: 600px;
height: 200px;
background-image: url(images/design_top.gif);
background-repeat: repeat-y;
float: left;
}
/* ------------------ CONTENT ------------------ */
#content_left {
width: 300px;
background-color: #F5F5F5;
float: left;
}
#content_right {
width: 600px;
background-image: url(images/design_bottom.gif);
background-repeat: repeat-y;
float: left;
}
body { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #333333; background-color: #FFFFFF; background-image: url(images/bg_repeat.gif); background-repeat: repeat-x; margin: 0px; } /* ----------------- MAIN DIVS ----------------- */ #main_container { width: 960px; background-color: #FFFFFF; margin: 0px; } #container { width: 900px; background-color: #FFFFFF; margin: 0px; float: left; } #bg_left { width: 30px; background-image: url(images/bg_left_repeat.gif); background-repeat: repeat-y; float: left; } #bg_right { width: 30px; background-image: url(images/bg_right_repeat.gif); background-repeat: repeat-y; float: left; } /* ------------------ IMGAGES ------------------ */ #design_logo { width: 300px; height: 370px; background-image: url(images/design_logo.gif); background-repeat: no-repeat; float: left; } #design_menu { width: 600px; height: 200px; background-image: url(images/design_top.gif); background-repeat: repeat-y; float: left; } /* ------------------ CONTENT ------------------ */ #content_left { width: 300px; background-color: #F5F5F5; float: left; } #content_right { width: 600px; background-image: url(images/design_bottom.gif); background-repeat: repeat-y; float: left; }
html code:
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>IJNTEMA.EU Familiewebsite</title>
<link href="opmaak.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="main_container">
<div id="bg_left"><img src="images/bg_left.gif" border="0" alt="" /></div>
<div id="container">
<div id="design_logo">logo</div>
<div id="design_menu">menu</div>
<div id="content_left">left</div>
<div id="content_right">right</div>
</div>
<div id="bg_right"><img src="images/bg_right.gif" border="0" alt="" /></div>
</div>
</body>
</html>
<!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> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>IJNTEMA.EU Familiewebsite</title> <link href="opmaak.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="main_container"> <div id="bg_left"><img src="images/bg_left.gif" border="0" alt="" /></div> <div id="container"> <div id="design_logo">logo</div> <div id="design_menu">menu</div> <div id="content_left">left</div> <div id="content_right">right</div> </div> <div id="bg_right"><img src="images/bg_right.gif" border="0" alt="" /></div> </div> </body> </html>
|