Tech Musings

Height matters...

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."
josea9757
I am not that brite you entry confuse me. Please check blog A (josea9757) see what I got to say and express you mind. is the only way we can start conecting to each other.
Jun-29-06 18:22:06 PDT Report this comment
lawgirl321
I wish I was sophisticated enough to use your information. It seems as though it could make my posts and blog much more attractive. I even checked your earlier blogs, which made it somewhat clearer. Darn shame I wasted all that $ on a liberal arts education!
Jun-29-06 18:37:16 PDT Report this comment

About eBay | Announcements | Security Center | eBay Toolbar | Policies | Government Relations | Site Map | Help
Copyright © 1995-2008 eBay Inc. All Rights Reserved. Designated trademarks and brands are the property of their respective owners. Use of this Web site constitutes acceptance of the eBay User Agreement and Privacy Policy.
eBay official time