You are here: Re: aligning typeset graphics to text baselines « HTML « IT news, forums, messages
Re: aligning typeset graphics to text baselines

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация