Hi, hope you can help me with this one.
I have a Div with five float divs inside:
var div=document.createElement("div");
div.className="cssDivNino";
var divFolio=document.createElement("div");
divFolio.className="cssFolio";
div.appendChild(divFolio);
var divCurp=document.createElement("div");
divCurp.className="cssCurp";
div.appendChild(divCurp);
var divNombre=document.createElement("div");
divNombre.className="cssNombre";
div.appendChild(divNombre);
var divLocalidad=document.createElement("div");
divLocalidad.className="cssLocalidad";
div.appendChild(divLocalidad);
var divClear=document.createElement("div");
divClear.className="clear";
div.appendChild(divClear);
divFolio.innerHTML= someData;
divCurp.innerHTML= someData;
divNombre.innerHTML= someData;
divLocalidad.innerHTML= someData;
This is the css:
.cssDivNino {padding: 0; margin: 0}
.cssFolio {font-family:arial; font-size:10px; color:#000000; background-color:#FFFFFF; float: left; width: 7%; margin-right: 1%; padding: 0}
.cssCurp {font-family:arial; font-size:10px; color:#000000; background-color:#FFFFFF; float: left; width: 17%; margin-right: 1%; padding: 0}
.cssNombre {font-family:arial; font-size:10px; color:#000000; background-color:#FFFFFF; float: left; width: 36%; margin-right: 1%; padding: 0}
.cssLocalidad {font-family:arial; font-size:10px; color:#000000; background-color:#FFFFFF; float: left; width: 35%; margin-right: 1%; padding: 0}
.clear { clear:both; width: 0%; height: 0; padding: 0; margin: 0; border: thin; border-color:#000000}
This is how it looks in IE7 and Firefox and in IE6. Notice the extra space of the parent div under the child divs on IE6.
I've tried to fix this with javascript:
div.style.height = divFolio.style.height;
But it doesn't work.