Hola a todos. Tengo un problema de posicionamiento de mis etiquetas div. Tengo dos divs que son aboslutely posicionado que aparecen como cuadros a un visitante. Quiero mi pie de página para ir a la derecha por debajo de estos cuadros, pero muestra una superposición en la parte superior de los cuadros o en la parte superior detrás de los cuadros. ¿Hay algo Im haciendo mal? Aquí está el código html:
<html>
<head>
<title>The title of the website</title>
<LINK rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<center>
<br>
<br>
<span itemprop="name"><h1>Header1</h1></span>
<h4>Header4</h4></center>
[ Home ]
<div id="wrap">
<div id="content4">
<p>Content 4</p></div>
<div id="content3">
<p>Content 3</p>
</div>
<div id="footer">Here is the footer
</div>
</div>
</body>
</html>
- <html>
- <head>
- <title>The title of the website</title>
- <LINK rel="stylesheet" type="text/css" href="css/style.css">
- </head>
- <body>
- <center>
- <br>
- <br>
- <span itemprop="name"><h1>Header1</h1></span>
- <h4>Header4</h4></center>
- [ Home ]
- <div id="wrap">
- <div id="content4">
- <p>Content 4</p></div>
- <div id="content3">
- <p>Content 3</p>
- </div>
- <div id="footer">Here is the footer
- </div>
- </div>
- </body>
- </html>
-
Y aquí está el código CSS
html {height:100%;}
body {
margin: 0;
background-image: url('../images/bg1.jpg');
background-repeat: repeat-x;
}
/* table menu */
#wrap {
margin:auto;
position:relative;
left:0 px;
background-color:red;
height:100%;
}
#inner-wrap {
padding-bottom:80px;
}
#inner-wrap:after {
content:" ";
display:block;
clear:both;
}
#tablemenu
{
background-color: 3B5998;
text-align: left;
width: 100%;
border-top: 1;
border-left:0;
border-style: solid;
border-color: black;
border-radius: 10;
font-family: tahoma;
color: white;
font-size: 12px;
}
img.tablelines
{
position:relative;
left: 29px;
}
#content1
{
background-color:white;
text-align: center;
position: absolute;
left: 0px;
width: 400px;
height: auto;
margin: 30px;
border-top:1;
border-right:1;
border-style:solid;
border-color:black;
font-size: 12px;
color: black;
}
#content2
{
background-color:white;
text-align: left;
position: absolute;
left: 430px;
width: 400px;
height: auto;
margin: 30px;
border-top:1;
border-right:1;
border-style:solid;
border-color:black;
font-size: 12px;
color: black;
}
#content3
{
background-color:white;
text-align: center;
position: absolute;
left: 860px;
width: 400px;
margin: 30px;
border-top:1;
border-right:1;
border-style:solid;
border-color:black;
font-size: 12px;
color: black;
}
#content4
{
background-color:white;
text-align: left;
position: absolute;
left: 0px;
width: 800px;
margin: 30px;
border-top:1;
border-right:1;
border-style:solid;
border-color:black;
font-size: 14px;
color: black;
}
#footer {
position: fixed;
bottom: 0px;
height:80px;
background-color: #333333;
width:100%;
color:#FF00FF;
text-align:center;
}
Cualquier ayuda sería muy apreciada, gracias!