PC Review


Reply
Thread Tools Rate Thread

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

 
 
lander
Guest
Posts: n/a
 
      8th Mar 2008
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.
 
Reply With Quote
 
 
 
 
Anthony Jones
Guest
Posts: n/a
 
      8th Mar 2008
"lander" <(E-Mail Removed)> wrote in message
news:04973356-4880-4f95-8728-(E-Mail Removed)...
> 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?




--
Anthony Jones - MVP ASP/ASP.NET


 
Reply With Quote
 
lander
Guest
Posts: n/a
 
      9th Mar 2008
On 3月8日, 下午9时21分, "Anthony Jones" <A...@yadayadayada.com> wrote:
> "lander" <lostlander....@gmail.com> wrote in message
>
> news:04973356-4880-4f95-8728-(E-Mail Removed)...
>
> > 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?
>
> --
> Anthony Jones - MVP ASP/ASP.NET


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

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
using cssclass with CSS IDs DamienS Microsoft ASP .NET 4 14th Jul 2008 03:22 AM
Repeat a series of many effects (loop a subset of effects) Brett Microsoft Powerpoint 7 19th May 2008 10:06 AM
cssClass and ID same name rodchar Microsoft ASP .NET 2 31st Mar 2008 05:26 PM
CssClass shapper Microsoft ASP .NET 3 30th May 2007 12:33 AM
CssClass Property CMM Microsoft ASP .NET 2 20th Mar 2006 05:45 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:09 AM.