Posted by Jonathan N. Little on 11/20/06 11:25
Chris Chiasson wrote:
> situation:
> placing an inline graphic of some mathematics typesetting (an equation
> or whatever) in an html (not xhtml) environment
>
> assume the dpi of the user's screen is known
> assume the baseline to image-bottom distance is known (in printer's
> points)
>
> Is there any combination of html markup or markup + css that will cause
> browsers to place the image so that its internal baseline aligns with
> that of the surrounding text (or at least comes close)?
>
>
> Follow up (assuming the above is possible):
> Is there any way to detect the dpi of the user's screen, perhaps
> through the use of java script? (obviously, most Windows user's screens
> behave as if they are rendering at 90dpi, even if that isn't the
> physical dpi of the screen+resolution combo... so 90 would be a good
> guess)
>
Use CSS see:
http://www.w3.org/TR/CSS21/visudet.html#propdef-vertical-align
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
[Back to original message]
|