Ver Mensaje Individual
  #5 (permalink)  
Antiguo 07/10/2009, 18:00
Avatar de murderer
murderer
 
Fecha de Ingreso: marzo-2009
Ubicación: Argentina/Misiones/Iguazu/Localhost
Mensajes: 196
Antigüedad: 15 años, 1 mes
Puntos: 2
Respuesta: Como crear una div pegada bien arriba

Cita:
Iniciado por loncho_rojas Ver Mensaje
mmm-- como me dijeron..

"No veo codigos, de mucha ayuda no podemos ser"
:D tienes razón:

index.php
Código PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml">
<
head>
<
meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<
title>Pruebas</title>
<
link href="estilos.css" rel="stylesheet" type="text/css" />
</
head>
<
body>
<
div id="maincontainer">
 <
p>&nbsp;</p>
  <
div id="nombre">
    <
p>&nbsp;</p>
  </
div>
  <
p>&nbsp;</p>
</
div>
</
body>
</
html
Estilos.css
Código HTML:
body {
margin:0px;
}

#maincontainer {
background:#0099CC;
width:1024px;
margin-left:auto;
margin-right:auto;
margin-top:0px;
}
 
 

#nombre {
background:url(/img/nombre.jpg) no-repeat;
margin:20px;
width:450px;
height:120px;
}

Saludos!
__________________
"Cuando te propones una meta todo el mundo conspira para que puedas lograrlo." Puedes encontrame en Twitter