You are here: Re: Vertical align image within a DIV in IE? « HTML « IT news, forums, messages
Re: Vertical align image within a DIV in IE?

Posted by Yucky Korpulent on 04/03/06 20:42

Opt 1. Use a graphics editor to combine them into a single image

Opt 2. Create style definitions for your images, using relative
positioning to get them where you want. For example,

#imgLeft {
position:relative;
top:40px; /* or whatever */
left:10px; /* etc. */
}
#imgRight {
position:relative;
top:40px; /* or whatever */
left:400px; /* etc. */
}

In this case you are specifying the vertical position yourself rather
than vertical aligning, but since your DIV has specified dimensions
anyway, this should get you want you want. There are ways of using CSS
positioning to achieve true middle vertical alignment for the images
but these can lack cross-browser consistency. Google "css vertical
center div" for tons of examples.

Good luck. Yucky,
Yukky Korpulent

 

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

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