CGridView in Internet Explorer

Anyone else have this issue? My CGridViews in Internet Explorer (7 in this case) look all wacky. I had to adjust the htmlOptions for the buttons to get those to actually line up horizontally, but for the other columns the filters extend into other columns. This is the default template…anyone else have this problem?

What Yii version?

I know this problem appears in some older versions, but 1.1.5 and 1.1.6 doesn’t have this issue.

I’m using 1.1.5

That’s a bit weird, but anyway, the solution is to overwrite the css that is added with the cgridview (cgridview.css if i remember correctly).

Or you can add a conditional statement in your document and pass the css for ie there,

something like:




<!--[if IE 7]>

css code here to fix the grid.

<![endif]-->




Hello,

there’s still this problem in Yii 1.1.12… (on internet explorer 6,7,8 ).

I had this same problem in IEanything and Firefox if I set an implicit column width using htmloptions. The fix for me was to add "table-layout:fixed;" to the CSS for the cGridView.