Hola a todos, necesito crear 2 divs al lado del contenedor, una a la izquierda y otra a la derecha, la izquierda me quedo mas o menos como queria, pero la derecha me quedo debajo del contenedor en vez de al costado, que esta mal?
HTML
Código:
<!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">
<link href="estilo.css" rel="stylesheet" type="text/css" />
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Poner algo alos costados del contenedor</title>
</head>
<body>
<div id="Izquierda">
<p>Un brazo izquierdo </p>
<p>Un brazo izquierdo </p>
<p>Un brazo izquierdo </p>
<p>Un brazo izquierdo </p>
<p>Un brazo izquierdo </p>
</div>
<div id="MainContainer">
<p>Estupido centro y estupido flanders</p>
<p>Estupido centro y estupido flanders</p>
<p>Estupido centro y estupido flanders</p>
<p>Estupido centro y estupido flanders</p>
<p>Estupido centro y estupido flanders</p>
</div>
<div id="Derecha">
<p>Esto deberia ir a la derecha</p>
<p>Esto deberia ir a la derecha</p>
<p>Esto deberia ir a la derecha</p>
</div>
</body>
</html>
CSS
Código:
@charset "utf-8";
/* CSS Document */
html{
height:100%;
}
body {
height:100%;
}
#Izquierda {
margin:left;
background-color:#ececec;
width:200px;
height:100%;
position:relative;
top:0px;
bottom:0px;
float: left;
color: #00F;
}
#MainContainer {
margin:auto;
background-color:#ececec;
width:400px;
height:100%;
position:relative;
top:0px;
bottom:0px;
}
#Derecha {
margin:right;
background-color:#ececec;
width:200px;
height:100%;
position:relative;
top:0px;
bottom:0px;
float: right;
color: #F00;
}