HighDots Forums  

Re: Line spacing of SMALL text in a table

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Re: Line spacing of SMALL text in a table in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
Swifty
 
Posts: n/a

Default Re: Line spacing of SMALL text in a table - 02-20-2009 , 11:19 AM






dorayme wrote:
Quote:
As long as you are happy. Sounded mildly interesting your problem, but
it would be good to see a page that shows the context of the problem.
Are you sure you need the units on the line-height? Will this unit have
no poor consequence in your context later on? Will you rue the day you
used it? In general, unless there is a special reason, it is safer not
to use units with line-height.
Well, this is the only time I've used line-height (so far) and I'm
unlikely to want to use it again in a hurry. As it happens, the only
people who get the small text to the right of the banner GIF are me, and
my fellow administrators (all three of them).

So I'm being a little seflish here, tuning the page so it looks as nice
for me as it does for everyone else. It does have the advantage that the
page looks the same for the administrators as it does for everyone else
(apart from the small text at the top right).

--
Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk


Reply With Quote
  #12  
Old   
Swifty
 
Posts: n/a

Default Re: Line spacing of SMALL text in a table - 02-20-2009 , 11:26 AM






Ben C wrote:
Quote:
Use line-height: 1 rather than line-height: 100%.

They mean almost the same, except when inheritance is involved. If you
inherit 100% you get 100% of the font size of the element you inherited
it from, not 100% of your own font size. This is weird and I can't
imagine what you would ever want, so just use 1.

The default for line-height is "normal" which is usually based on a
value built into the particular font. It usually works out as about 1.1
or 1.2 x font-size, but depends on both the browser and the font.
1 and 100% had the same effect in all three browsers which I normally
test with. I confess that I didn't bother trying to understand the
precise meaning of the various options, I just "turned the knob" until I
got it looking right. As I explained above, this is only affecting me
and the other three administrators. It was only important to me because
it was irritating me. Now it isn't. So that's OK.

--
Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.