Browser Probleem DIV layout

Status
Niet open voor verdere reacties.

thomassson

Nieuwe gebruiker
Lid geworden
1 nov 2007
Berichten
1
probleem met layout in verschillende browsers:
Bedoeling zoals op de onderste afbeelding.(bovenste is internet explorer)
zie http://users.pandora.be/dthomaz/probleem.gif

css-code:
@charset "utf-8";

#container {
width: 100%;
height: 100%;
}

#menu {
background-color: blue;
height: 100px;
width: 100%;
}

#search {
width: 200px;
height: 100px;
background-color: red;
float: left;
}

#foto {
width: 150px;
height: 100px;
background-color: green;
float: left;
}

#slogan{
width: 250px;
height: 100px;
background-color: yellow;
float: left;
}

#content{
margin-left: 200px;
width: 400px;
height: 100%;
background-color: orange;
float: left;
}

#footer{
width: 400px;
height: 20px;
background-color: purple;
clear: both;
}
 
thomassson,
Probeer dit eens hieronder:
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=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
<!--
#container {
width: 100%;
height: 100%;
}

#menu {
float:left;
background-color: blue;
height: 100px;
width: 100%;
}

#search {
width: 200px;
height: 100px;
background-color: red;
float: left;
}

#foto {
width: 150px;
height: 100px;
background-color: green;
float: left;
}

#slogan{
width: 250px;
height: 100px;
background-color: yellow;
float: left;
}

#content{
margin-left: 200px;
width: 400px;
height: 100%;
background-color: orange;
float: left;
}

#footer{
width: 400px;
height: 20px;
background-color: purple;
clear: both;
}

-->
</style>
</head>

<body>
<div id="container">
	<div id="search">
    </div>
    <div id="foto">
    </div>
    <div id="slogan">
    </div>
    <div  id="menu">
    </div>
    <div id="content">
    <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. </p>
    
    <div id="footer">
    </div>
   </div>
</div>
</body>
</html>
 
Laatst bewerkt:
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan