![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello. Is it possible to specify the exact space between two lines, measured from the baseline of the top line to the ascenders of the second line? I tried adding the space with padding-bottom, but it adds it below the descenders. So the actual space between lines is larger than I specified. Jacob |
#3
| |||
| |||
|
|
In article <jacob-45C538.10011002072004 (AT) news03 (DOT) east.earthlink.net>, Jacob Weber <jacob (AT) jacobweber (DOT) com> wrote: Hello. Is it possible to specify the exact space between two lines, measured from the baseline of the top line to the ascenders of the second line? I tried adding the space with padding-bottom, but it adds it below the descenders. So the actual space between lines is larger than I specified. Jacob I should add that I could make it work with line-height, but that would require me to know the font size in advance. |
#4
| |||
| |||
|
|
In article <jacob-45C538.10011002072004 (AT) news03 (DOT) east.earthlink.net>, Jacob Weber <jacob (AT) jacobweber (DOT) com> wrote: Hello. Is it possible to specify the exact space between two lines, measured from the baseline of the top line to the ascenders of the second line? I tried adding the space with padding-bottom, but it adds it below the descenders. So the actual space between lines is larger than I specified. I should add that I could make it work with line-height, but that would require me to know the font size in advance. |
#5
| |||
| |||
|
|
Jacob Weber wrote in jacob-B71E4A.13022402072004 (AT) new....earthlink.net In article <jacob-45C538.10011002072004 (AT) news03 (DOT) east.earthlink.net>, Jacob Weber <jacob (AT) jacobweber (DOT) com> wrote: Hello. Is it possible to specify the exact space between two lines, measured from the baseline of the top line to the ascenders of the second line? I tried adding the space with padding-bottom, but it adds it below the descenders. So the actual space between lines is larger than I specified. Jacob I should add that I could make it work with line-height, but that would require me to know the font size in advance. At a guess, you're setting the font in px - can you get line-height to work in the way you want if you set the font/line height in % or em? |
#6
| |||
| |||
|
|
In article <jacob-45C538.10011002072004 (AT) news03 (DOT) east.earthlink.net>, Jacob Weber <jacob (AT) jacobweber (DOT) com> wrote: Hello. Is it possible to specify the exact space between two lines, measured from the baseline of the top line to the ascenders of the second line? I tried adding the space with padding-bottom, but it adds it below the descenders. So the actual space between lines is larger than I specified. Jacob I should add that I could make it work with line-height, but that would require me to know the font size in advance. At a guess, you're setting the font in px - can you get line-height to work in the way you want if you set the font/line height in % or em? *sigh* THIS is why we always request a URL to a test case... |

#7
| |||
| |||
|
| http://www.jacobweber.com/style_test.html As you can see, the two lines have a certain amount of space between them. I'd like to be able to specify that, in pixels. But my fonts are specified as percentages, so I don't know the exact pixel size. If I set line-height in pixels, I would have to guess. If I set line-height in %, I wouldn't be able to set the exact number of pixels between the lines. |
#8
| |||
| |||
|
|
So, for some users the text might be 10px tall and for others it mightbe 100px tall, but you want the space between the lines of text to always be, for example, 5px. Put that way, does it make sense to want such a thing? |
#9
| |||
| |||
|
|
In article <rcebe0hnucra182chggakniv5f6hqrgffr (AT) 4ax (DOT) com>, Steve Pugh <steve (AT) pugh (DOT) net> wrote: So, for some users the text might be 10px tall and for others it mightbe 100px tall, but you want the space between the lines of text to always be, for example, 5px. Put that way, does it make sense to want such a thing? Exactly. |
|
I'm implementing a design, and the designers specified the space between lines in pixels, although the font size itself is browser-dependent. |
|
Is this possible? |
#10
| |||
| |||
|
|
In article <rcebe0hnucra182chggakniv5f6hqrgffr (AT) 4ax (DOT) com>, Steve Pugh <steve (AT) pugh (DOT) net> wrote: So, for some users the text might be 10px tall and for others it mightbe 100px tall, but you want the space between the lines of text to always be, for example, 5px. Put that way, does it make sense to want such a thing? Exactly. I'm implementing a design, and the designers specified the space between lines in pixels, although the font size itself is browser-dependent. Is this possible? |
![]() |
| Thread Tools | |
| Display Modes | |
| |