Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / March 2008

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
lander - 08 Mar 2008 05:10 GMT
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.
Anthony Jones - 08 Mar 2008 13:21 GMT
> In the theme folder, i define a css as:
> .QuestionText
[quoted text clipped - 7 lines]
> 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?

Signature

Anthony Jones - MVP ASP/ASP.NET

lander - 09 Mar 2008 06:56 GMT
> > In the theme folder, i define a css as:
> > .QuestionText
[quoted text clipped - 13 lines]
> --
> Anthony Jones - MVP ASP/ASP.NET

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

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.