Tuesday, October 21, 2008

IE 6.0 Hack - Float Issue

I ran into a strange browser compatibility issue when displaying a GridView.  FireFox wanted to float the grid off the screen to the right until I added Align="Left" to the GridView, but IE reacted by floating the grid behind the master page template so the content got truncated.  I ended up adding an IE hack to the CSS by placing “* html” before the class:

* html .ReportGrid {float:none;}

 

No comments: