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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top