chiprivers Posted September 15, 2010 Share Posted September 15, 2010 I am having a real problem with some css! I am using php to dynamically add some css class declarations to the head of my page script. The following has been added within the head tags: <head> ... <style type="text/css"> .sts_unavailable { background-color: #C1C1C; } </style> ... </head> In this form the class is not having any effect on the subject elements. However, if I put exactly the same into an external style sheet, ie: ... .sts_unavailable { background-color: #C1C1C; } ... it works fine! I have gone over and over this and must be missing something really straight forward and simple! but what is it? Quote Link to comment Share on other sites More sharing options...
haku Posted September 16, 2010 Share Posted September 16, 2010 Neither of those will work as #C1C1C is not a valid color. Valid colors are either 3 or 6 characters in length after the # mark. Quote Link to comment Share on other sites More sharing options...
chiprivers Posted September 16, 2010 Author Share Posted September 16, 2010 How did I miss that? I knew it would be something simple! Thanks for that Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.