![]() | |
![]() |
| | Thread Tools | Display Modes |
#31
| |||
| |||
|
|
You might find that so much attention to font specification is a maintenance worry in the long term. But your mileage might vary. What worries me about the approach is that you seem commited to so much font specification. Look at how many times font-size etc is repeated. It is nice if you can get to the stage where you can rely on the natural cascade to work for you. I can understand that you have travelled a long road and would be reluctant to do wholesale changes at this point. But I just mention for the future at least. |
|
I am not sure if you know there is an issue with line height being specified in units. There could be some circumstances where you might consciously want units but for the most part it is safest to use line height as a mere proportion without units. I see that I have something on this that explains the idea a bit: |
#32
| |||
| |||
|
|
I am not sure if you know there is an issue with line height being specified in units. There could be some circumstances where you might consciously want units but for the most part it is safest to use line height as a mere proportion without units. I see that I have something on this that explains the idea a bit: http://netweaver.com.au/alt/line-height_demo.html |
#33
| |||
| |||
|
|
Bergamot wrote: Why do you think 64em should *ever* equal 768px? There is absolutely no relationship between em and px. This is your downfall - expecting everyone to use particular browser default text sizes. The 'em' unit is equal to the computed value of the 'font-size' property |
|
The default size for ‘medium’ text in browsers is about 16px |
|
If we change font size to 62.6 % we make 0.1em ~ 1px in most browsers. |
#34
| |||
| |||
|
|
I actually am not aware of anyone who says the page is unreadable. |
#35
| |||
| |||
|
|
Thu, 07 Aug 2008 14:46:40 +1000 from dorayme doraymeRidThis (AT) optusnet (DOT) com.au>: I am not sure if you know there is an issue with line height being specified in units. There could be some circumstances where you might consciously want units but for the most part it is safest to use line height as a mere proportion without units. I see that I have something on this that explains the idea a bit: http://netweaver.com.au/alt/line-height_demo.html Thanks for posting this. I don't specify text size in pixels, of course, but I've been doing line heights in em or % rather than a unitless proportion. |
|
If I understand your page correctly, where problems come up in using units for line-height is for inheritance nd not in the specific selector where it's specified. Would that be an accurate summary? |
#36
| |||
| |||
|
|
dorayme wrote: I am not sure if you know there is an issue with line height being specified in units. There could be some circumstances where you might consciously want units but for the most part it is safest to use line height as a mere proportion without units. I see that I have something on this that explains the idea a bit: http://netweaver.com.au/alt/line-height_demo.html I thought 1.5em was proportional to the font-size of the parent element. I was doing this because I had read somewhere that your eyes follow text better if the line height is consistent, though I can't remember where, and may have got in wrong in any event. |
#37
| |||
| |||
|
|
Antipodeans may - very briefly - be amused by my gullible.htm in IE. |
#38
| |||
| |||
|
|
"(One would expect most Opera users to be using the very latest version)" - but Opera 9.5 has dropped (AFAICS) a useful feature present in 9.2 - CtrlAltV. |
#39
| |||
| |||
|
|
In article <MPG.2304a92396b10798b77a (AT) news (DOT) individual.net>, Stan Brown <the_stan_brown (AT) fastmail (DOT) fm> wrote: Thu, 07 Aug 2008 14:46:40 +1000 from dorayme doraymeRidThis (AT) optusnet (DOT) com.au>: http://netweaver.com.au/alt/line-height_demo.html If I understand your page correctly, where problems come up in using units for line-height is for inheritance nd not in the specific selector where it's specified. Would that be an accurate summary? Roughly so. Unless you have special requirements in mind (I can think of one or two but I won't bore anyone with them unless they don't think there could be such a cases), it is better practice to use unitless. Why? Because for most purposes there are only downsides doing otherwise. |
#40
| |||
| |||
|
|
In article <1218087276.460646 (AT) angel (DOT) amnet.net.au>, David Morris <dlmorrisDONTSPAM (AT) netwizDONTSPAM (DOT) com.au> wrote: dorayme wrote: I am not sure if you know there is an issue with line height being specified in units. There could be some circumstances where you might consciously want units but for the most part it is safest to use line height as a mere proportion without units. I see that I have something on this that explains the idea a bit: http://netweaver.com.au/alt/line-height_demo.html I thought 1.5em was proportional to the font-size of the parent element. I was doing this because I had read somewhere that your eyes follow text better if the line height is consistent, though I can't remember where, and may have got in wrong in any event. Clearly, line height should be more or less consistent within a paragraph of same sized text. But if you are relying on the actual (em or px) line height of the parent element to dictate the line height of a child or grandchild, then it will result in what no one would want as I tried to example. |
|
If you want consistent readability, you have two choices. (1) Use units with line-height but watch your back all the time, and be ready to hand code more line heights for the children and grandchildren so readability and commonsense prevails. |
|
(2) Don't use units and relax and let one (or very few) line height declarations do the job for the trunk and branches. |
![]() |
| Thread Tools | |
| Display Modes | |
| |