Title: div class in theme
Last modified: August 20, 2016

---

# div class in theme

 *  [Webby](https://wordpress.org/support/users/webby2012/)
 * (@webby2012)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/div-class-in-theme/)
 * hey,
 * I’ve searched a number of threads but not found the answer to this yet…
 * I want to add a couple of div classes to my post. I added the code into my custom.
   css sheet and added the class accordingly, this however hasn’t worked?
 * When I place the css directly into the post it works fine?
 * **Here is my css:**
 *     ```
       <style type="text/css">
       div.yca_results_box_grey {
       	background:#ccc;
       	background:-moz-linear-gradient(top, #ccc, #eee);
       	background:-webkit-gradient(linear,0 0, 0 100%, from(#ccc), to(#eee));
       	box-shadow:inset 0 0 10px rgba(0,0,0,.4);
       	-moz-box-shadow:inset 0 0 10px rgba(0,0,0,.4);
       	-webkit-box-shadow:inset 0 0 10px rgba(0,0,0,.4);
       	}
       div.yca_results_box_green {
       	background:#ccc;
       	background:-moz-linear-gradient(top, #4f863b, #A9D47E);
       	background:-webkit-gradient(linear,0 0, 0 100%, from(#4f863b), to(#A9D47E));
       	box-shadow:inset 0 0 10px rgba(0,0,0,.4);
       	-moz-box-shadow:inset 0 0 10px rgba(0,0,0,.4);
       	-webkit-box-shadow:inset 0 0 10px rgba(0,0,0,.4);
       	}
       </style>
       ```
   
 * Here is the page I am referring to: [my post](http://yorkshirechess.org/yca-league-reports-round-3/)
 * Please help!!
 * _[closed as duplicate – only start one topic per problem, and continue with [http://wordpress.org/support/topic/div-class-in-theme-1?replies=7](http://wordpress.org/support/topic/div-class-in-theme-1?replies=7)]_

The topic ‘div class in theme’ is closed to new replies.

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [div-class](https://wordpress.org/support/topic-tag/div-class/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [Webby](https://wordpress.org/support/users/webby2012/)
 * Last activity: [13 years, 6 months ago](https://wordpress.org/support/topic/div-class-in-theme/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
