I'm struggling with getting rid of a 1px border around certain highlighted boxes in my gridview. The issue persists on both IE7 and FF.
Rendered html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
...
test case
CSS
body {
}
.NoMargin
{
margin:0 0 0 0;
}
.NoPadding
{
padding:0 0 0 0;
}
.BgColor
{
background-color:Aqua;
}
.MaxHeightAndWidth
{
height:100%;
width:100%;
}
.NoBorder
{
border:0px;
}
ASP.NET
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GridViewColoring.aspx.cs" Inherits="WebApplication1.GridViewColoring" %>
...
C# backend
using System;
...
Update
I managed to resolve the issue by adjusting the item style for the Serial# template. Thanks for the guidance!
<ItemStyle Font-Size="Smaller" CssClass="NoMargin NoPadding" />