Forum Moderators: not2easy
If any one can help out i would really apreciate it.
Thks
Here goes de codes html and css.
HTML
<html>
<head>
<title>example</title>
<link rel="STYLESHEET" type="text/css" href="estilo.css">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<style type="text/css">
a:link{color:#990000;text-decoration:underline}
a:hover{color:#FF3300;text-decoration:underline}
a:active{color:#FF3300;text-decoration:underline}
a:visited{color:#990000;text-decoration:underline}
body {
background-image: url(example.jpg);
background-repeat: repeat;
}
</style>
<script type="text/javascript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
</head>
<body onLoad="MM_preloadImages('example.jpg','example.jpg','example.jpg','example.jpg')">
<div id="contenedorX">
<div id="contenedor">
<div id="cabecera">
<div id="botonera"><a href="#" target="_self"><img src="example.jpg" width="210" height="23" border="none" id="Image1" onMouseOver="MM_swapImage('Image1','','example.jpg',1)" onMouseOut="MM_swapImgRestore()"></a><a href="#" target="_self"><img src="example.jpg" width="138" height="23" border="none" id="Image2" onMouseOver="MM_swapImage('Image2','','example.jpg',1)" onMouseOut="MM_swapImgRestore()"></a><a href="#" target="_self"><img src="example.jpg" width="115" height="23" border="none" id="Image3" onMouseOver="MM_swapImage('Image3','','example.jpg',1)" onMouseOut="MM_swapImgRestore()"></a><a href="#" target="_self"><img src="example.jpg" width="107" height="23" border="none" id="Image4" onMouseOver="MM_swapImage('Image4','','example.jpg',1)" onMouseOut="MM_swapImgRestore()"></a></div>
</div>
<div id="cuerpo">
<div id="caja_01">
<p>long exmaple text
<p>long example text<br>
<br>
<img src="img/mtc_01.jpg" width="555" height="150"><br>
<br>
</div>
<div id="caja_02">
<h2><a href="#" target="_self"><img src="example.gif" width="143" height="25" border="0"></a></h2>
<h4><a href="#" target="_self">example</a><br>
<a href="#" target="_self">example</a><br>
<a href="#" target="_self">example</a><br>
<a href="#" target="_self">example</a></h4>
<h2>
<p> <a href="#" target="_self"><img src="example.gif" width="195" height="25" border="0"></a><br>
</h2>
<h4><a href="#" target="_self">example</a><br>
<a href="#" target="_self">example</a><br>
<a href="#" target="_self">example</a><br>
<a href="#" target="_self">example</a><br>
<a href="#" target="_self">example</a><br>
<a href="#" target="_self">example</a><br>
<a href="#" target="_self">example</a><br>
<a href="#" target="_self">example</a><br>
</h4>
</p>
</div>
</div>
<div id="base"></div>
</div>
</div>
</body>
</html>
CSS
@charset "UTF-8";
/* CSS Document */
#contenedorX{
width: 100%;
text-align:center;
}
#contenedor{
width: 950px;
margin:auto;
}
#cabecera{
height : 235px;
width: 950px;
background-image:url(img/back_top.jpg);
background-repeat:no-repeat;
}
#botonera{
width: 570px;
height: 23px;
z-index: 1;
float:left;
margin-left: 90px;
margin-top: 195px;
}
#cuerpo{
background:url(img/back_body.jpg) repeat;
background-color:#E8CFAE;
width: 950px;
height:auto;
}
h1 {
font-size: 15px;
line-height: 1.5em;
font-weight:bolder;
color:#330000;
letter-spacing:0.2em;
}
h2 {
font-size: 12px;
font-weight:bold;
}
h3 { font-size: 11px;
font-weight:bold;
color:#990000;
}
h4 { font-size: 11px;
font-weight:bold;
}
h5 { font-size: 11px;
font-weight:bold;
}
#caja_01{
width:560px;
padding: 5px;
text-align:justify;
font-family: Arial, Helvetica, sans-serif;
font-color:#330000;
font-size: 11px;
font-style: normal;
line-height: 1.8em;
letter-spacing: 0.05em;
float:left;
margin-left: 90px;
margin-top: 20px;
}
#caja_02{
width:200px;
padding: 10px;
text-align:left;
font-family: Arial, Helvetica, sans-serif;
color:#990000;
font-size: 11px;
font-style: normal;
line-height: 2.5em;
letter-spacing: 0.05em;
border-left-width: thin;
border-left-style: solid;
border-left-color: #E7AB94;
float: left;
margin-left: 30px;
margin-top: 40px;
}
#base{
height : 215px;
width: 950px;
background-image:url(img/back_bottom.jpg);
background-repeat:no-repeat;
clear:both;
}
[edited by: swa66 at 2:16 am (utc) on Aug. 8, 2009]
[edit reason] examplified [/edit]
#cuerpo{background:url(img/back_body.jpg) repeat;
background-color:#E8CFAE;
width: 950px;
height:auto;}
that div is containing the floated children because of an IE Quirk, it has a width (which triggers hasLayout) :o
In order to get a parent div to contain floated child divs you either have to float the parent or add an overflow property, anything other than visible, to the parent, or there are workarounds/hacks though I personally have not found them necessary for quite a while. e.g. clearfix, or adding an extra clearing div element last in the parent
in your case I think the parent cuerpo is 100% of the outer container #contenedor? So you could try floating "cuerpo" at 100% width which should keep all browsers happy, i.e. you have a float and a width