Can i get lines of text closer together ??

liunx

Guest
is it possible to have lines of text closer together ?

i just want my text to be a lot tighter together... is this possible in css ?

i currently am using this..

<style type="text/css">
<!--
.smalblack {
font-family: Arial, Helvetica, sans-serif;
font-size: 10px;
font-weight: normal;
color: #000000;
text-decoration: none;
position: absolute;
}
-->
</style>line-spacing: 0em; /* close together */
line-spacing: 1em; /* far apart */
You can use values in between those to get different amount of space between the lines.<style type="text/css">
<!--
.smalblack {
font-family: Arial, Helvetica, sans-serif;
font-size: 10px;
font-weight: normal;
color: #000000;
text-decoration: none;
line-spacing: 0em;
}
-->
</style>


like this then ??? i just add it and nothing happenedTry line-height instead. ;)Just to note: if there is a large amount of text with the lines of text pressed against each other, legibility might be an issue.... o.Oim sure there is. as for the line-height attribute. you may feel more comfortable using pixels instead at first.

try line-height: 12px;

and decrrease the value to your preference. to make the gap smaller.

Best Wishes,
DavidYes, but it would be good to use ems or percentages when styling text, so it is scalable in all browsers. So you know, you can change the tenths place in the ems value, i.e.: 1.3em. You could also use 130% to do the same thing. Same goes all the way I think; 0.9em = 90%, 0.1em = 10%.Originally posted by omega
So you know, you can change the tenths place in the ems value, i.e.: 1.3em.
You can also change the hundredths place, too: 0.005em; which, I believe, is roughly 1px (well, for me it is).
 
Back
Top