Height matters...Posted Jun-29-06 18:17:28 PDT Updated Jun-29-06 18:17:59 PDT Css has a property named line-height. What might this be used for? As you might surmise, it affects the amount of space above and below your text characters on a line. A simple use for it is to give your text just a bit more room when the font would otherwise make it look crowded. This is what we do on our China site where the characters are easier to read if the lines don't crowd up against each other. .p {line-height: 200%} would double space all the lines in all paragraph tags. The value for line height can be a simple number like 2 which is multiplied times the font size. It can also be a percentage as we just saw or it can be a size in designated units like px/em/ex. The meaning of these units was covered in an earlier post. Cheers "I am an eBay employee. The opinions expressed in my blog are my own, and not eBay's."
|