SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Addict
    Join Date
    Sep 2009
    Posts
    316
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation Unable to apply CSS to form label

    I'm getting some strange results when attempting to apply a style to a form label.

    My CSS
    Code:
    label {
    display: inline-block;
    width: 90px;
    text-align: right;
    color: #666;
    background: #f5f5f5;
    }

    However with my browser inspector, the label tag appears empty

    Code:
    label {
    }
    I've removed all styesheets and javascript (just in case) and I'm still getting the same result. In fact when I try to type the style into the label tag within Chrome's inspector, it doesn't save the result. When I try to do the same within Firefox's inspector, it works although Firefox also renders the label tag as un-styled when initially loaded.

    Any suggestions?

  2. #2
    SitePoint Addict
    Join Date
    Sep 2009
    Posts
    316
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well I'll ****ing be. Apparently I had some invisible gremlins preventing the CSS from rendering correctly.


Tags for this Thread

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
  •