Announcement

Collapse
No announcement yet.

Using content categories for fragment styling

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Using content categories for fragment styling

    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>

    #2
    I suspect your problem is that stylesheets are fixed and not unique for each page or fragment.

    Mike
    -----------------------------------------

    First Tackle - Fly Fishing and Game Angling

    -----------------------------------------

    Comment


      #3
      Thanks guys - I'll use a variable instead.

      Comment

      Working...
      X