S
Steve Richter
I want my panel to have an inner margin. Problem is label text does
not appear to recognize the margin. In this example, the TextBox
aligns on the margin, the label does not:
<asp
anel id="Panel1" runat="server"
BackColor="gainsboro"
Scrollbars=Both Style="margin:25px;"
Height="200px"
Width="300px">
Panel1: Here is some static content...
<br />
<asp:Label Text="Label 1" runat=server />
<br />
<asp:TextBox ID=TextBox1 runat=server />
</asp
anel>
What is the correct HTML/CSS way to get text to recognize the margin
of a div?
thanks,
-Steve
not appear to recognize the margin. In this example, the TextBox
aligns on the margin, the label does not:
<asp

BackColor="gainsboro"
Scrollbars=Both Style="margin:25px;"
Height="200px"
Width="300px">
Panel1: Here is some static content...
<br />
<asp:Label Text="Label 1" runat=server />
<br />
<asp:TextBox ID=TextBox1 runat=server />
</asp

What is the correct HTML/CSS way to get text to recognize the margin
of a div?
thanks,
-Steve