Ver Mensaje Individual
  #13 (permalink)  
Antiguo 12/11/2009, 21:38
Avatar de deirdre
deirdre
 
Fecha de Ingreso: mayo-2009
Mensajes: 690
Antigüedad: 15 años
Puntos: 45
Respuesta: Ajustar DIV cabecera

Pues claro que sí! estimado kseso?: maldita 'divitis' que nos infecta y contagia.

¿Porqué será que, en ocasiones, mi sudor produce divs en lugar de 'agua'?: la función crea el órgano o el órgano crea la función???

Maldita divitis, voy a intentar vacunarme (no es la primera vez)...

Lo fácil que es:
Código HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>foto centrada dentro de div</title>
<style type="text/css">
#caja {
	width: 500px;
	height: 500px;
	position: relative;
	border: 1px solid #444;
}
.posicion {
	width: 224px;
	height: 300px;
	position: absolute;
	left: 138px;
	top: 100px;
}
</style>

</head>

<body>

<div id="caja">
	<img class="posicion" alt="mi_foto" src="mi_foto.jpg" />
</div>

</body>

</html> 
Bye