Dreamweaver - scroll

 
Vista:

scroll

Publicado por sergio (22 intervenciones) el 10/05/2007 13:27:02
Hola,
Tengo una duda sobre un scroll que hecho. He metido dentro de una celda una capa para que salga un scroll vertical, y me sale el texto pegado al barra del scroll. Hay alguna manera para que haya un espacio, por ejemplo, de 20 px entre el párrafo y el scroll?

Gracias
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:scroll

Publicado por Daniel Ulczyk (1171 intervenciones) el 10/05/2007 17:40:23
Podés agregarle padding al texto. Posteá el código y lo vemos.
Saludos!
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:scroll

Publicado por sergio (22 intervenciones) el 10/05/2007 20:53:48
Hola,
El código lo copié de un post tuyo,

<style type="text/css">

#LayerTexto {

width:100%;
height:280px;
z-index:1;
overflow: auto;
}

</style>

y luego en el body:

<table width="90%" height="100%" border="0" align="center">
<tr>
<td width="33%">nbsp; </td>
<td width="67%"><div align="right">
<div id="LayerTexto" class="scroll">
AQUI VA EL TEXTO
</div>
</tr>
</table>

Gracias nuevamente
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:scroll en celda + padding

Publicado por Daniel Ulczyk (1171 intervenciones) el 10/05/2007 21:55:38
Hola Sergio!
Un post mío! Qué chico es el mundo a veces...
Bueh! ahí va el ejemplo:

<!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=iso-8859-1" />
<style type="text/css">
body {
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 78%;
}

#LayerTexto {
width:100%;
height:100px;
z-index:1;
overflow: auto;
background-color: #00CCFF;
}
#LayerTexto p {
font-family: "Times New Roman", Times, serif;
font-size: 130%;
padding: 5px 5px 10px 5px;
}
td {
vertical-align: top;
}
.resaltado {
background-color: #CCFF99;
padding-top: 10px;
padding-bottom: 10px;
}
</style>
<title>demo scroll en celda</title>
</head>
<body>
<table width="90%" height="100%" border="0" align="center">
<tr>
<td width="33%">La celda adyacente tiene un scroll mediante un div </td>
<td width="67%">
<div id="LayerTexto" class="scroll">
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vivamus euismod. Proin ut nisl id sem malesuada ullamcorper. Curabitur sit amet sapien vel enim iaculis sagittis. Aenean id nibh. Nunc aliquam est at tellus. Sed sollicitudin interdum mi. Quisque at mauris vitae lectus accumsan faucibus. Vestibulum at est. Mauris vitae ipsum. Pellentesque at urna. Aliquam nunc. Quisque fermentum, sapien eget adipiscing cursus, sapien quam rutrum nulla, in tempor diam nulla quis nunc. Pellentesque gravida eleifend arcu.</p>
</div></tr>
<tr>
<td>La celda adyacente no tiene scroll. </td>
<td class="resaltado">Esta celda no tiene scroll, no tiene div. Saludos!
</tr>
</table>
</body>
</html>

Considerá que cuando en la línea
padding: 5px 5px 10px 5px;
Los valores se leen arriba-derecha-abajo-izquierda (top-right-down-left
De otra forma pueden también declararse
padding-top: 10px;
padding-bottom: 10px;
Con omisión (cero) para los otros dos.

Suerte!
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar