IE7 and the CSS table-cell property

前端 未结 10 1855
名媛妹妹
名媛妹妹 2020-11-29 20:17

So I just love it when my application is working great in Firefox, but then I open it in IE and... Nope, please try again.

The issue I\'m having is that I\'m setting

10条回答
  •  余生分开走
    2020-11-29 20:59

    A code example fot the conditional comments that user eyelidlessness, kindly posted

    "[if lt IE 8]" only works if the browser is IE lower than IE8 because IE8 does it right. With the conditional comments IE7 arranges the DIVs nicely horizontally... HTML:

      
    

    My CSS

    .link {
     display:table-cell;
     vertical-align:middle;
     }
     div.container {
     margin: 0 auto;
     display:table;
     }
     .thumb {
     display:table-cell;
     float: left;
     text-align: center;
     }
    

    IE 8 and 9 Work with the CSS as does FireFox. IE7 looks now the same using the Table and TD & TR tags. On some pages IE 8 worked only 20% of the time, so I used [if lt IE 9 ]

    This also helps smoothing out vertical-align issues that IE7 can't handle.

提交回复
热议问题