Ver Mensaje Individual
  #3 (permalink)  
Antiguo 14/10/2012, 06:40
Avatar de flashmax
flashmax
 
Fecha de Ingreso: julio-2012
Ubicación: Bs.As. Argentina
Mensajes: 507
Antigüedad: 11 años, 9 meses
Puntos: 86
Respuesta: Div fijo en pantalla

te dejo un ejemplo, fíjate que el div left esta con posicion fixed como te indico Nemutagk

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>Documento sin título</title>
<style type="text/css">
.contenedor {
	width:900px;
	height:100%;
	margin: 0 auto;
	color: #fff;
	background-color:#000;
}
.left {
	width:150px;
	height:100%;
	color: #fff;
	float:left;
	background-color:#666;
	position:fixed;
}
.right {
	width:750px;
	margin-left:150px;
	color: #fff;
	float:left;
	background-color:#000;
}
body {
	margin:0;
	padding:0;
}
</style>
</head>

<body>
<div class="contenedor">
  <div class="left">
    <ul>
      <li>LINK</li>
      <li>LINK</li>
      <li>LINK</li>
      <li>LINK</li>
      <li>LINK</li>
      <li>LINK</li>
      <li>LINK</li>
      <li>LINK</li>
      <li>LINK</li>
      <li>LINK</li>
      <li>LINK</li>
      <li>LINK</li>
      <li>LINK</li>
      <li>LINK</li>
      <li>LINK</li>
      <li>LINK</li>
      </ul>
</div>
  <div class="right">The standard Lorem Ipsum passage, used since the 1500s

"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
</div>
</div>
</body>
</html> 
__________________
Saludos!
----------------------------------------------------------