Espacio

Cual es el comando que se pone para modificar el espacio entre lineas ??
en el texto q tengo escrito....
gracias
atte
Jorge.
Respuesta
1
Se puede usandolo dentro de una etiqueta SPAN
<span style="line-height: 25px">
<p><font color="#FFFFFF">HOME</font>
</span>
Hasta donde tengo entendido se puede hacer con:
Line-height: 20px
Ponlo como un atributo más en tu archivo.css
nunca lo he usado, pero me parece que el valor por defecto es de 10 a 12 pixeles, asi que cualquier valor mayor a ese deberia ser perceptible.
SUERTE!
si iria directo en el mismo archivo, no en el css sabes como quedaria (??)
line-height: 20px asi funciona bien en el archivo css, pasa q lo queria agregar en una sola parte de un archivo y no tengo ahi nada en css
osea x ej tengo...
<p><font color="#FFFFFF">HOME</font></p>
sabes como o que tendria que agregar si quisiera ponerlo alli ?
tengo el siguiente estilo definido
<STYLE TYPE="text/css" MEDIA="screen, print, projection">
<!--
.primeraspalabras {
line-height: 95px;
font-size: 30px;
}
-->
</STYLE>
lo estoy haciendo con el dreamweaver en la vista del dreamwaver funcion bien (line-height y font size) pero cuando lo ejecuto, el line-height NO FUNCIONA, x mas que le cambie el numero siempre esta igaul (cuando lo ejecuto; en la vista del dreamweaver si varia) es dentro de un frame q hay hecho. SABES QUE PUEDE SER ????
ahi va todo el codigo que tengo actualmente
<html>
<head>
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
<STYLE TYPE="text/css" MEDIA="screen, print, projection">
<!--
.primeraspalabras {
line-height: 95px;
font-size: 30px;
}
-->
</STYLE>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000" background="Fondos_164_amar.jpg">
<p><SPAN CLASS=primeraspalabras><a href="index.htm" target="_parent"><img src="Numer.gif" width="20" height="20" border="0"></a>
HOME</span></p>
<p><font size="2"><b><font color="#FFFFFF"><a href="bibliotecas.asp" target="mainFrame"><img src="Numer.gif" width="20" height="20" border="0"></a>
BIBLIOTECAS</font></b></font></p>
<p><font size="2"><b><font color="#FFFFFF"><a href="bomberos.asp" target="mainFrame"><img src="Numer.gif" width="20" height="20" border="0"></a>
BOMBEROS</font></b></font></p>
<p><font size="2"><b><font color="#FFFFFF"><a href="correos.asp" target="mainFrame"><img src="Numer.gif" width="20" height="20" border="0"></a>
CORREO</font></b></font></p>
<p><font size="2"><b><font color="#FFFFFF"><a href="educacion.asp" target="mainFrame"><img src="Numer.gif" width="20" height="20" border="0"></a>
EDUCACION</font></b></font></p>
<p><font size="2"><b><font color="#FFFFFF"><a href="eventos.asp" target="mainFrame"><img src="Numer.gif" width="20" height="20" border="0"></a>
EVENTOS</font></b></font></p>
<p><font size="2"><b><font color="#FFFFFF"><a href="plazas.asp" target="mainFrame"><img src="Numer.gif" width="20" height="20" border="0"></a>
PLAZAS</font></b></font></p>
<p><font size="2"><b><font color="#FFFFFF"><a href="hospitales.asp" target="mainFrame"><img src="Numer.gif" width="20" height="20" border="0"></a>
SALUD</font></b></font></p>
<p><b><font color="#FFFFFF" size="2"><a href="seguridad.asp" target="mainFrame"><img src="Numer.gif" width="20" height="20" border="0"></a>
SEGURIDAD</font></b></p>
</body>
</html>
GRACIAS DESDE YA
Atte
Jorge
me sucede lo mismo si lo uso con el ejemplo q vos me distes
Dos cosas:
Primero; respecto de dreamweaver y el código que genera... para hacer sitios de forma visual, es muy útil, pero en general el código que usa es muy muy malo... largo y con muchas etiquetas de sobra... lo mismo se puede hacer con mucho menos código... te mando una copia de tu código optimizado.
(Si ya sabes algo de HTML te recomiendo armar las páginas con programas menos visuales que dreamweaver.. por ejemplo, el que yo uso: AceHTML5Pro)
<html>
<head>
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
<STYLE TYPE="text/css" MEDIA="screen, print, projection">
<!--
.primeraspalabras {
line-height: 20px;
font-size: 30px;
}
-->
</STYLE>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000" background="Fondos_164_amar.jpg">
<p><SPAN CLASS=primeraspalabras><a href="index.htm" target="_parent"><img src="Numer.gif" width="20" height="20" border="0"></a>
HOME<br><br>
<font size="2" color="#FFFFFF"><b><a href="bibliotecas.asp" target="mainFrame"><img src="Numer.gif" width="20" height="20" border="0"></a> BIBLIOTECAS<br><br>
<a href="bomberos.asp" target="mainFrame"><img src="Numer.gif" width="20" height="20" border="0"></a> BOMBEROS<br><br>
<a href="correos.asp" target="mainFrame"><img src="Numer.gif" width="20" height="20" border="0"></a>
CORREO<br><br>
<a href="educacion.asp" target="mainFrame"><img src="Numer.gif" width="20" height="20" border="0"></a> EDUCACION<br><br>
<a href="eventos.asp" target="mainFrame"><img src="Numer.gif" width="20" height="20" border="0"></a>
EVENTOS<br><br>
<a href="plazas.asp" target="mainFrame"><img src="Numer.gif" width="20" height="20" border="0"></a>
PLAZAS<br><br>
<a href="hospitales.asp" target="mainFrame"><img src="Numer.gif" width="20" height="20" border="0"></a> SALUD<br><br>
<a href="seguridad.asp" target="mainFrame"><img src="Numer.gif" width="20" height="20" border="0"></a> SEGURIDAD</b></font></span>
</body>
</html>
Segundo:
Respecto al alto de las lineas... el alto que defines se logra para cuando tienes un texto largo que ocupa más de una linea (en tu código original trata de escribir un parrafo completo a continuacion de la palabra "HOME" y sin usar etiquetas para saltos de lineas y vas a ver como funciona el line-height)
Si quieres variar la separacion entre botones de menú, puedes hacerlo usando tablas o imágenes gif transparentes (de esa forma se hace normalmente)
De todas formas, si usas el código que te mandé (usando <BR> en ves de <P>, también funciona el "line-height")

Añade tu respuesta

Haz clic para o

Más respuestas relacionadas