The W3C CSS Validator doesn’t like the way ASP.Net 2.0 renders the asp:label control.
‹asp:Label ID=”lblSep” runat=”server” CssClass=”datalist” Height=”20px” /›
renders as:
‹span id=”ctl00_rightcontent1_DataList1_ctl01_lblSep” class=”datalist” style=”display:inline-block;height:20px;”›‹/span›
The problem is that display:inline-block is valid in CSS 3.0 but not CSS 2.0.
Note that the framework did not apply the CssClass datalist override:
display
{
display:inline;
display:block;
}
Answer? Let’s call it a workaround:
‹label style=”height:20px;”/›


{ 0 comments… add one now }
You must log in to post a comment.