Title: Simple PHP/CSS Question ?
Last modified: August 18, 2016

---

# Simple PHP/CSS Question ?

 *  Resolved [pufftenticle](https://wordpress.org/support/users/pufftenticle/)
 * (@pufftenticle)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/simple-phpcss-question/)
 * in my main index template, there is a CSS class call inside a php snippet that
   says this:
 * `<div id="content" <?php if (is_home()) { ?>class="home"<?php } ?>>`
 * i want to do that same thing with about 11 or 12 different category templates,
   so that i get this:
 * `<div id="content" <?php if (is_CATEGORY1()) { ?>class="CATEGORY1STYLE"<?php }?
   >>`
 * i have all of the category templates spread out, but can’t for the life of me
   figure out what to put in there. help ?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/simple-phpcss-question/#post-646656)
 * It’s all there:
    [http://codex.wordpress.org/Conditional_Tags](http://codex.wordpress.org/Conditional_Tags)
 *  Thread Starter [pufftenticle](https://wordpress.org/support/users/pufftenticle/)
 * (@pufftenticle)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/simple-phpcss-question/#post-646657)
 * cool ! thanks

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Simple PHP/CSS Question ?’ is closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [pufftenticle](https://wordpress.org/support/users/pufftenticle/)
 * Last activity: [18 years, 7 months ago](https://wordpress.org/support/topic/simple-phpcss-question/#post-646657)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
