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? Link to comment https://forums.phpfreaks.com/topic/213523-bang-head-against-wall-many-times/ 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. Link to comment https://forums.phpfreaks.com/topic/213523-bang-head-against-wall-many-times/#findComment-1111526 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 Link to comment https://forums.phpfreaks.com/topic/213523-bang-head-against-wall-many-times/#findComment-1111589 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.