Monday, August 08, 2005

CSS vertical-align and images

For webdesigners aligning images vertical in a div is a problem which could be easily solved if IE would support the full display posibilities like "table" (CSS 2.0).. but as usual it does not work that way.

Since i don't like to use tables in a css design until it is really necessary (like information in table design or forms) i searched further more to find a solution that did not need a table i found one way that worked.

You have to use position relative and absolute for it. In short you have 3 different div's and you use 2 different ways, one for IE and one for the rest which have full CSS 2.0 support ;-)

Here the links:
http://www.jakpsatweb.cz
http://workingbath.com/

No comments: