So i know in that i can design a style for a HTML control by either using CSS-class or CSS-id association.
For instance, HTML:
CSS:div
{
position: absolute;
}
div#divHeader
{
left: 1px;
right: 1px;
top: 5px;
min-width: 90%;
height: 100px;
text-align: center;
}
HTML:
<div id="divHeader">
...
</div>
Question:
Can i use this same Association for ASP.Net controls or will i have to implicitely declare the association with the CSSClass attribute?
CSS:#lblTitle
{
width: 100px;
}
HTML:
...
<td id="tdTitle">
<asp:Label ID="lblTitle" Style="font-size: 46pt; vertical-align: middle;" runat="server" />
</td>
...
I would assume it would work but need some verification. If i have to use the CSSclass attribute i will but would rather reserve that attribute for other generic style development.