cssClass set but with no effects..........

  • Thread starter Thread starter lander
  • Start date Start date
L

lander

In the theme folder, i define a css as:
..QuestionText
{
margin-top:20px;
text-align:center;
}

Here, i use it:
<asp:Label ID="question" runat="server" Height="96px" Text="Label"
Width="648px" BackColor="WhiteSmoke" BorderColor="CornflowerBlue"
BorderStyle="Solid" CssClass="QuestionText"></asp:Label>

but it takes no effect, why?

thanks.
 
lander said:
In the theme folder, i define a css as:
.QuestionText
{
margin-top:20px;
text-align:center;
}

Here, i use it:
<asp:Label ID="question" runat="server" Height="96px" Text="Label"
Width="648px" BackColor="WhiteSmoke" BorderColor="CornflowerBlue"
BorderStyle="Solid" CssClass="QuestionText"></asp:Label>

Seems to work fine for me. What is it that you are expecting and what is it
that you are getting?
 
Seems to work fine for me. What is it that you are expecting and what is it
that you are getting?

Sorry, i wasn't clear, but i solved it by replace margin with
padding...^_^ thx anyway!
 
Back
Top