T
Tony Johansson
Hello!
The asp group doesn't seems to know this question so I try here even if this
is not a C# question.
Assume I define a label in the skin file, setting font-size to Smaller in
this way.
<asp:Label BackColor="White" ForeColor="Red" Runat="Server" Font-Bold="True"
Font-Size="Smaller" />
Now I create an inline style on the div tag that look like this.
<div style="font-size: xx-large; font-family: Verdana">
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
</div>
When I run this page and look in the show source I can see this for the div
tag that is of interest for me.
<div style="font-size: xx-large; font-family: Verdana">
<span id="Label1"
style="color:Red;background-color:White;font-size:Smaller;font-weight:bold;">
Label
</span>
</div>
In the Browser I can notice that it's the style for the div that will have
the final say.
I would believe that the skin file would have the final say but that was
wrong.
So my question is how is it possible that the div will have the final say
for this font-size ?
//Tony
The asp group doesn't seems to know this question so I try here even if this
is not a C# question.
Assume I define a label in the skin file, setting font-size to Smaller in
this way.
<asp:Label BackColor="White" ForeColor="Red" Runat="Server" Font-Bold="True"
Font-Size="Smaller" />
Now I create an inline style on the div tag that look like this.
<div style="font-size: xx-large; font-family: Verdana">
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
</div>
When I run this page and look in the show source I can see this for the div
tag that is of interest for me.
<div style="font-size: xx-large; font-family: Verdana">
<span id="Label1"
style="color:Red;background-color:White;font-size:Smaller;font-weight:bold;">
Label
</span>
</div>
In the Browser I can notice that it's the style for the div that will have
the final say.
I would believe that the skin file would have the final say but that was
wrong.
So my question is how is it possible that the div will have the final say
for this font-size ?
//Tony