This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Stylesheets > October 2005 > Re: How can I display a right arrow in IE aligned vertically in the





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: How can I display a right arrow in IE aligned vertically in the
Alan J. Flavell

2005-10-17, 6:28 pm


[crossposted, and f'ups proposed]

On Mon, 17 Oct 2005, Harry Haller wrote:

> When subscripts are not aligned to text bottom the line spacing
> varies. When one has a lot of sub- and super-scripts that looks very
> ugly. I want the same line spacing throughout.


Yes, this is a real problem. I tackled it for myself several years
ago, when CSS support in browsers was still a mess, and kludged a
partially acceptable solution (which by now isn't worth passing on)...

I'm sure one can do much better nowadays, but you should be raising
this on the stylesheets group - hence the crossposting. At any rate
you want to increase the line-height above its default value (but for
heaven's sake do it proportionally, not with fixed size units, so that
people who need to increase the text size also get increased
line-height in proportion).

> I think the browsers don't make sub- and superscripts small enough
> which is why I am setting them smaller myself.


When I displayed the markup from your original posting (though I
didn't try anything with it before changing it from quirks to
standards mode), your modified subscripts were distinctly *larger*
than their natural size, in either of Mozilla or IE6.

> Here is my amended style, which I prefer for Firefox:
>
> <style type="text/css"><!--
> body, p {font-family: Bookman Old Style, serif, font-size: 11pt}
> sub {vertical-align: text-bottom; font-size: 8pt}


*Don't* use absolute size units for general web use.

[...]
> Thank you, IE likes that but it looks awful with Firefox. I sense a
> bit of JavaScript coming on here.


Oh dear. Are you using Standards mode yet?

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews