Why is is that Block 1
doesn't render the expected styling and Block 2
does?
CSS
.test
{
height:3.85in;
width: 2.625in;
border: 10px solid blue;
padding-right:.25in;
padding-left:.25in;
padding-top:.25in;
text-align:center;
overflow:hidden;
}
.test label
{
font-size:xx-large;
color:Red;
}
Block 1
<div class="test" runat="server"><asp:Label runat="server">Test</asp:Label></div>
Block 2
<div class="test" runat="server"><label runat="server">text</label></div>
The output for the HTML for the two divs is identical.
<asp:Label />
tag renders to a<span>
which means your CSS for.test label
would not work for the<asp:label />
– fnostro Jun 12 '13 at 20:21DID NOT
render the html the same. – wootscootinboogie Jun 12 '13 at 20:22