On Fri, May 16, 2008 at 12:15 AM, Gunlaug Sørtun <[EMAIL PROTECTED]> wrote:
> Michael B Allen wrote:
>>
>> Is there any way to reduce the space above characters. Consider the
>> following:
>>
>> http://www.ioplex.com/~miallen/t14.html
>>
>> Setting line-height: 0.5; has no effect on the space above "Apples".
>> There's at least 4 whole pixels above the A and l in this example. Is
>> there any way to reduce that?
>
> For a valid construction - yes.
> However, if you want to only reduce the space _above_ characters -
> visually - then you may have to tune line-height and use offset...
>
> <http://www.gunlaug.no/tos/alien/mba/test_08_0515.html>
Yes, the position: relative; top: -1px; is doing what I want.
div.up1 {
position: relative;
top: -1px;
}
<a href="x"><div class="up1">Oranges</div></a><
But in hindsight it only looks strange in FF whereas in IE and Safari
everything looks normal without it. So I think I'll just leave it out.
But still a good thing to know.
Thanks,
Mike
--
Michael B Allen
PHP Active Directory SPNEGO SSO
http://www.ioplex.com/
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/