I’m getting some strange results when attempting to apply a style to a form label.
My CSS
label {
display: inline-block;
width: 90px;
text-align: right;
color: #666;
background: #f5f5f5;
}
However with my browser inspector, the label tag appears empty
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?