Hola buenas,
El problema que tengo es el siguiente: Tengo una página que el tamaño puede variar según el contenido, entonces me he creado las siguientes funciones:
Código:
function calculartam()
{
document.getElementById('contp_cuerpo_exterior_izda').style.height=document.getElementById('contp_cuerpo_contenido02').offsetHeight;
document.getElementById('contp_cuerpo_exterior_dcha').style.height=document.getElementById('contp_cuerpo_contenido02').offsetHeight;
}
function calculartam1()
{
if(document.getElementById('cuerpo').offsetHeight<=document.getElementById('menu').offsetHeight+195)
document.getElementById('cuerpo').style.height=document.getElementById('menu').offsetHeight+195;
}
Esto me funciona perfectamente en IE pero no en firefox.
Ya he probado todo lo que me he ido encontrando por el foro: minheight, poner style["height"] y un montón de cosas más.
Pero nada, no le gusta, y ya no encuentro nada más
¿Alguien sabe cómo puedo solucionarlo?
Un saludo y gracias