DIV disappears on IE7 and IE6 when using margin 'auto' in a DIV inside li item

Test This is stripped down version of a full page. I can see the text 'I want this text to show up' in FF. But this is invisible in IE7 and IE6. The moment I remove 'auto' word from margin in inner DIV, it shows up on both explorers. How can I fix this? I can't remove 'auto' as I want inner div to be centrally aligned inside outer div. **NOTE: It's a part of DIV slider.**
As I noticed, I managed to get it work without 'auto'.

以上就是DIV disappears on IE7 and IE6 when using margin 'auto' in a DIV inside li item的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » HTML5 答疑