In ASP.NET Gridviews generate a table which generates a parent div container. This can break CSS layouts since there is no way to attach styles to the generated div. Is ther
Simplest and best solution using CSS class "gridViewWrapperFix".
ASPX:
<%--the full gridview would go here--%>
CSS:
/* styles the div that gets auto generated around and asp.net gridview */ .gridViewWrapperFix > div { padding: 0; margin: 0; border: 3px solid red; }