PDA

View Full Version : How to alter the leading of type?


djt
01-13-2009, 10:36 AM
I am reworking my website and for some of the buttons I am choosing to use text rather than giffs as it will be far easier to edit.

The problem that I am having is with the leading of the type, is there any way to reduce it?

Many thanks

Dan

d a v e
01-13-2009, 01:01 PM
it's called line height in css and it usually defaults to around 1.3 or so.
set the line height for the element like this

li {line-height:1.5;}

more on css and specifically line-height here
http://www.w3schools.com/css/pr_dim_line-height.asp