• ugua

    (@ugua)


    Hi,

    I have a cell containing post title and categories.
    I have 3 categories in total and I’d like to have each CELL in a different color.
    How do I do that?

    Thank u guys.

Viewing 4 replies - 1 through 4 (of 4 total)
  • petit

    (@petit)

    If by CELL, you mean some containing HTML block, like a <div> or <li>, you could possibly use a PHP if statement to give the blocks different CSS classes, e.g. <div class="some-cat">.
    Then in you stylesheet set the background or whatever property, using these classes.
    Such as:
    .some-cat{
    background-color: yellow;
    }

    Thread Starter ugua

    (@ugua)

    Ok but how to set my index.php where the posts from the 3 different categoies appear?

    Thank you

    Thread Starter ugua

    (@ugua)

    up

    petit

    (@petit)

    Allright! Maybe your answer can be found in this thread?
    http://wordpress.org/support/topic/60671?replies=4#post-324444

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘categories background’ is closed to new replies.