W
Wannabe
when I try to style a div using the id tag, from an external style sheet, it
is not recognized. If I change the style sheet id to a class, it is
recognized. Is this how styling a div within an update panel supposed to work?
Example:
HTML
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<div id="myDiv" class="myDiv">whatever
</div>
</ContentTemplate>
</UpdatePanel>
This is not recognized in an update panel
#myDiv
{
border: solid 1px blue;
}
This is recognized in an update panel
..myDiv
{
border: solid 1px green;
}
is not recognized. If I change the style sheet id to a class, it is
recognized. Is this how styling a div within an update panel supposed to work?
Example:
HTML
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<div id="myDiv" class="myDiv">whatever
</div>
</ContentTemplate>
</UpdatePanel>
This is not recognized in an update panel
#myDiv
{
border: solid 1px blue;
}
This is recognized in an update panel
..myDiv
{
border: solid 1px green;
}