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

Posted by Chris Chiasson on 12/06/06 08:13

Jonathan N. Little wrote:
> What I'm saying is the text will be scalable whether or not you wish it,
> and pt, as with in and cm don't really meant anything with respect to
> "displayed" presentation. Best to use a proportional unit that is
> relative to the font's size, then if the font increases or decreases in
> size the spacing remains proportional to the font.

An inline graphic is displayed, by default, with its lower edge on the
baseline of the text surrounding the graphic. If the surrounding text
changes size or font face, the location of the baseline could move, but
the graphic would still have its lower edge on the baseline. Since I am
setting the vertical-align property to the negative of the distance
from the graphic's lower edge to the internal baseline of the image -
the distance needs to be a fixed distance.

There is a good argument for expressing that distance in pixels, but I
really don't see the case for em or %.

> That is where XHTML shines...

Aye

 

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

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