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

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.
 
A

Anthony Jones

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?
 
L

lander

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

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,900
Latest member
Nell636132

Latest Threads

Top