Hi. I'm trying to set up different styling for categories of fragment on the home page... Basically I want a different background colour on some fragments.
Here's what I've put in the stylesheet: below - i.e. unless the fragment category is 'white' the background colour should be brown.
Unfortunately even the fragments set to a category of 'white' have a brown background!
Is the fragment taking it;s category from the parent brochure page category perhaps?
Is there a better way to achieve what I'm trying to do?!
---------------------------------------------------------------------------------------
.fragment-text{
background-color: #DDCFB9;
}
<actinic:block if="%3cactinic%3avariable%20name%3d%22ContentCategory%22%20%2f%3e%20%20%20%3d%3d%20%22white%22" >
.fragment-text{
background-color: #ffffff;
}
</actinic:block>
Here's what I've put in the stylesheet: below - i.e. unless the fragment category is 'white' the background colour should be brown.
Unfortunately even the fragments set to a category of 'white' have a brown background!
Is the fragment taking it;s category from the parent brochure page category perhaps?
Is there a better way to achieve what I'm trying to do?!
---------------------------------------------------------------------------------------
.fragment-text{
background-color: #DDCFB9;
}
<actinic:block if="%3cactinic%3avariable%20name%3d%22ContentCategory%22%20%2f%3e%20%20%20%3d%3d%20%22white%22" >
.fragment-text{
background-color: #ffffff;
}
</actinic:block>
Comment