Jump to content

[bang head against wall many times!]


chiprivers

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.