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.
lol HAMMER > Computer
Categories
- All Discussions 348
- Gaming 114
- General Chat 72
- Funny Stuff 54
- TV, Movies & Music 14
- Screenies, Graphics & Photos 9
- Hardware 20
- Software 9
- Site, Game & PC Support 24
- Complaints 7
- Suggestions 17