SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    Nov 2005
    Posts
    396
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Applying Width to a ASP.Net Control

    Hi, I have this style in my css file.
    Code:
       #formlabel
       {
             width: 120px;
       }
    During the design time, I set the CssClass property of the label to formlabel and I really see it, it really apply. However, if I am going to run my web project, the style that I created for the label does not apply. What is wrong with it?

  2. #2
    SitePoint Wizard webcosmo's Avatar
    Join Date
    Oct 2007
    Location
    Boston, MA
    Posts
    1,480
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    # applies for element with that id. For CssClass you need to define a class.
    Code:
       .formlabel
       {
             width: 120px;
       }


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •