Ver Mensaje Individual
  #5 (permalink)  
Antiguo 21/07/2010, 11:52
chuchufuentes
 
Fecha de Ingreso: mayo-2008
Mensajes: 353
Antigüedad: 16 años
Puntos: 3
De acuerdo Respuesta: central pagina

Gracias por contestar mi hermano, tremendo link de CCS http://www.araudi.net/, muy bueno, pero creo que hice algo con javascript
aqui tienes el codigo en caso de que alguien lo quiera



<script language="javascript" type="text/javascript">
function resize()
{
var wide = window.screen.availWidth

var high = window.screen.availHeight

var maxh = 960 // your max height here; enter 0 if not used
var maxw = 980 // your max width here; enter 0 if not used
var content = document.getElementById('centrado')
content.style.position = 'absolute'
if(maxh > 0 && high <= maxh)
{
content.style.height = high
}
if(maxw > 0 && wide <= maxw)
{
content.style.height = high
}
if(maxh > 0 && high > maxh)
{
content.style.height = maxh
high = (high - maxh) / 2
content.style.top = high
}
if(maxw > 0 && wide > maxw)
{
content.style.width = maxw

//wide = (wide - maxw) / 2
alert('el ancho 1 ' + wide );
alert('el ancho 2 ' + maxw );
wide = (wide - maxw) / 2
content.style.left = wide - 15
}
// Do not remove line below
content.innerHTML = content.innerHTML + "<p style='position:absolute;top:95%;width:40%;left:30 %;'>provided by: <a href='http://ls-design.forthelads.net'>liveing_sacrifice</a></p>"
}
//-->
</script>
</head>
<body onLoad="resize()">
<form id="form1" runat="server">
<div>

<div id="centrado" style="border-right: blue thick solid; border-top: blue thick solid; border-left: blue thick solid; border-bottom: blue thick solid">
aqui si hay manteca</div>


</div>
</form>
</body>
</html>
gracias