IE9 rendering issues table offset at random columns
Today while developing an ASP.NET application using AJAX to display the Search Result, I encountered a weird issue. My aspx page contain a Repeater control with ItemTemplate to display free flow data in HTML Table.
Issue
What seems to happen though, is that one or two rows in the loaded table, will have its data offset at a random column.
You can find the details of issue in following articles:
Resolution
The problem was with extra white space between td nodes causing IE9 render a dynamically generated table incorrectly, in my case to misalign a cell within a table. Same code rendered perfectly fine in IE6, IE7, IE8, FireFox 4, Chrome 10, but not IE9.
Try one of the following
- Adding to the head element [meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"] of the page.
- Attempt to remove any white-space between table cells (between tds start and end tag), instead of having the next cell start on a new line. (This has caused strange spacing issues for me in the past)
Added following tag on my page and everything working fine now. This will instruct browser to display content in IE7 Standards mode.
Comments
Post a Comment