![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I’m having trouble with “line spacing.” The problem is that the 2nd line (below it) is too close, is touching the line above. If you’d like to look at my site, it’s at: 211alamedacounty.org The problem is in the 4 “headlines” at the top of the home page. For example, the words: “Alameda County Public Health Department Announces H1N1 Flu Vaccination Schedule” If you have the screen sized so it fits in 2 lines, then it looks fine. However, if you size the screen so it shows in 3 lines, then the lines are too close together, touching each other. |
#3
| |||
| |||
|
|
In article dda4be12-5faf-4855-a72e-ce34720371e4...oglegroups.com>, Bill <bill_activist (AT) yahoo (DOT) com> wrote: I˙m having trouble with ´line spacing.ˇ The problem is that the 2nd line (below it) is too close, is touching the line above. If you˙d like to look at my site, it˙s at: http://211alamedacounty.org/ The problem is in the 4 ´headlinesˇ at the top of the home page... If you have the screen sized so it fits in 2 lines, then it looks fine. However, if you size the screen so it shows in 3 lines, then the lines are too close together, touching each other. The first thing to do is to remove completely *all* the line-height rules in your CSS. That will fix this problem. Want to know why and what else you should be doing or not doing? (psst... John H., better sharpen that red pencil of yours <g>) |
#4
| |||
| |||
|
|
On Wed, 28 Oct 2009 12:09:15 +1100, dorayme wrote: In article dda4be12-5faf-4855-a72e-ce34720371e4...oglegroups.com>, Bill <bill_activist (AT) yahoo (DOT) com> wrote: I˙m having trouble with ´line spacing.ˇ The problem is that the 2nd line (below it) is too close, is touching the line above. If you˙d like to look at my site, it˙s at: http://211alamedacounty.org/ The problem is in the 4 ´headlinesˇ at the top of the home page... If you have the screen sized so it fits in 2 lines, then it looks fine. However, if you size the screen so it shows in 3 lines, then the lines are too close together, touching each other. The first thing to do is to remove completely *all* the line-height rules in your CSS. That will fix this problem. Want to know why and what else you should be doing or not doing? (psst... John H., better sharpen that red pencil of yours <g>) Heh, I'm ready, but I don't think the OP will be. I'm feeling rather cruel and heartless today so maybe I should just remain quiet if he does ask. The poor fellow probably has feelings, you know. |
#5
| |||||
| |||||
|
|
If you'd like to look at my site, it's at: http://211alamedacounty.org/ |
|
Aside of the fact that the OP should stop using px units for his font sizes |
|
I think he has fundamentally misunderstood the line-spacing property where he really wants to adjust margin and padding. |
|
Most times one should just leave line-spacing alone, |
|
but if you do then I recommend a ratio value for example "line-spacing: 1.5". |
#6
| ||||
| ||||
|
|
Jonathan N. Little wrote: [...] If you'd like to look at my site, it's at: http://211alamedacounty.org/ Strangely, someone's newsreader has changed a server name to a URL. That's useful in a sense, though questionable in many ways, and surely not an excuse for not providing a URL proper. |
|
Aside of the fact that the OP should stop using px units for his font sizes As far as I can see, the page declares fonts in points, not pixels |
|
I think he has fundamentally misunderstood the line-spacing property where he really wants to adjust margin and padding. That's quite possible, it's surely bad practice to set line-height (!) in points. For example, on Firefox, the user can conveniently override author's font size settings by increasing the font size even when it has been given in points or by setting a minimum font size. When line-height is set in points, well, I hope everyone sees the problem. Most times one should just leave line-spacing alone, I disagree. There are two basic reasons to set line-height: the defaults are usually too small for font faces and sizes authors tend to use, and setting line-height (to any value) helps to avoid some nasty browser bugs. |
|
but if you do then I recommend a ratio value for example "line-spacing: 1.5". That's too much for most cases (and uses a wrong name for the property, so it gets ignored). More commonly, * { line-height: 1.3; } |
#7
| |||
| |||
|
|
In article dda4be12-5faf-4855-a72e-ce3472037... (AT) h40g2000prf (DOT) googlegroups.com>, The first thing to do is to remove completely *all* the line-height rules in your CSS. That will fix this problem. Want to know why and what else you should be doing or not doing? (psst... John H., better sharpen that red pencil of yours <g>) -- dorayme |
#8
| |||
| |||
|
|
Dorayme, Thank you, Yes, that did it, just removing all the "line-height" references fixed the problem. Thank you for your help. I'm probably too afraid to ask for other comments... Funny how in this newsgroup, y'all seem to be talking to each other about the problem, instead of talking to the person who asked the question. I'm reminded of one of those sitcoms; "You know I'm still in the room, right?" |
#9
| |||
| |||
|
|
A few things: 1. dorayme <snip 2. This <snip 2. Usenet <snip |
#10
| |||
| |||
|
|
On Oct 27, 6:09Â*pm, dorayme <doraymeRidT... (AT) optusnet (DOT) com.au> wrote: In article dda4be12-5faf-4855-a72e-ce3472037... (AT) h40g2000prf (DOT) googlegroups.com>, The first thing to do is to remove completely *all* the line-height rules in your CSS. That will fix this problem. Want to know why and what else you should be doing or not doing? .... Thank you, Yes, that did it, just removing all the "line-height" references fixed the problem. Thank you for your help. I'm probably too afraid to ask for other comments... Funny how in this newsgroup, y'all seem to be talking to each other about the problem, instead of talking to the person who asked the question. I'm reminded of one of those sitcoms; "You know I'm still in the room, right?" |
![]() |
| Thread Tools | |
| Display Modes | |
| |