Ver Mensaje Individual
  #4 (permalink)  
Antiguo 05/07/2011, 07:40
nx00
 
Fecha de Ingreso: agosto-2007
Mensajes: 345
Antigüedad: 16 años, 8 meses
Puntos: 21
Respuesta: Div de ancho fijo en la misma linea de un div con porcentaje

Si el resultado que buscas es este, revisa el código y adaptalo a tu sitio.

Imagen a 800x600


Imagen a 1024x728


Imagen a 1280x800


Código:
Código PHP:
<html>
<
head>
<
style type="text/css">
#imgCabecera{
/*float:right;*/
height:140px;
width:760px
background:url(images/cabecera.jpg);
background-repeat:no-repeat;

position:relative;
top:-140px;
left:0px;
}

#imgProlongada{
/*float:right;*/
height:140px;
width100%;
background:url(images/prolongacion.jpg);
background-repeat:repeat-x;

position:relative;
top:0px;
left:0px;
}

#head {width:100%;}
#head h1 {
margin:0px;
}
</
style>
</
head>
<
body>
<
div id="head">    
    <
div id="imgProlongada"></div>
    <
div id="imgCabecera"><h1>Titulo</h1></div>
    
</
div>
</
body>
</
html
__________________
----
http://www.mascodigo.com