Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Vitical Align Image Bottom cross-browser

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #28305
    pinkp
    Member

    I realise examples of this have been explained (http://css-tricks.com/what-is-vertical-align/) but I have a variation of the problem.

    I would like to vertically align an image in a div.
    The image height can change (as new images are uploaded by the user) the div height is fixed.
    I have the following example working in FF but not IE. Is this possible?
    Many thanks. :)

    #Image_Home_Left {
    height: 380px;
    line-height: 380px;
    width: auto;
    position: fixed;
    float: left;
    }

    #Image_Home_Left img {
    vertical-align: bottom;
    margin-right: auto;
    margin-left: auto;
    }

Viewing 1 post (of 1 total)
  • The forum ‘CSS’ is closed to new topics and replies.