Sunday 13 December 2009

IE8 float issue with ASP .Net User Control

I had a new float issue appear the other day and whilst easy to solve was a bit of a pain to find! It was unique to IE8 in that IE 6, 7 and Firefox behaved whilst 8 didn't. I had two floats on a two column page and the left float would appear underneath the main content in IE8.

I discovered, if you happen to have a similar problem, that one of the user controls that was being processed on this page was wrapped within <FORM> tags - yet it wasn't a form to be processed, it didn't have an action - the parent master page itself had form the processing origanised. Once the FORM tags were removed from the user control IE8 then behaved itself. Hope this helps if you come across this problem!

No comments:

Post a Comment