You are here: Re: Vertical align of image in a div tag « HTML « IT news, forums, messages
Re: Vertical align of image in a div tag

Posted by Bone Ur on 11/14/07 07:51

Well bust mah britches and call me cheeky, on Wed, 14 Nov 2007 06:16:56 GMT
dalyea@gmail.com scribed:

> Thanks for the reply. The table option is certainly one I considered
> and actually
> have been using for the longest time. But I have 2,000+ such item
> files that take
> up 78M of disk space, and I am trying to cut down not only disk space
> usage
> but also speed up delivery of my pages. By using the div tags alone
> instead of
> tables, I cut my page size total down to 67M for the 2,000+ files.

Huh? Your example showed a table!

> But that aside, the point of my post was missed in your response, and
> that is
> that I wish to display every row in the table at exactly 64px in
> height, and that
> the images in the table will not always be 64px or greater in size.
> (I have written
> the code obviously to do the simple math scaling to keep image
> proportional and
> at or under 64px in size.) If an image is 47px x 30px, then that
> image will rest
> at the top of the li1 div container, and I want it to be vertically
> centered in the middle
> of the div container (hence the subject line of my post). I guess the
> part I left out
> is that the image sizes vary widely and that this is not a 1 row
> table.

Get the image out of a div and directly in the cell, then vertical
centering is easy (and, btw, the default). Whatever other alignment you
need, work on that afterwards.

--
Bone Ur
Cavemen have formidable pheromones.

 

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

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