vertical align with CSS

Started by wafflestomperFiled Under Site, Game & PC Support

Subscribe

So I have some content in a div element that I want to be aligned vertically in the middle…. I could set the display of the div to table-cell and set vertical-align to middle, but that doesn’t work in IE.. anyone have a simple solution to this problem?

IE’s a pain in the arse ain’t it :) There’s this solution here which I’ve used previously with great success, although there may be something easier now. Depends if you want to support IE6 or if you’re only targeting IE7+

I actually just found that same solution online and tested it out. It seems pretty solid but I was wondering if anyone knew of something simpler, something that doesn’t take 3 divs to do… but i guess there’s nothing simple about getting your pages to display correctly in IE, so I’ll probably end up using it. As far as IE6 I guess I don’t really care if it works or not, but I do want IE7 support.

  • ava
    • InteL
    • Administrator

lol HAMMER > Computer


Sign in to comment

Categories