Title: Styling Elements
Last modified: August 22, 2016

---

# Styling Elements

 *  [OscarGuy](https://wordpress.org/support/users/oscarguy/)
 * (@oscarguy)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/styling-elements/)
 * I’ve got a theme now (Frontier) that enables me to add CSS code to style elements
   within it. The problem is I can’t figure out how to style posts and widgets as
   each one has an ID that has a numeric tag attached to the end of “post” or “text.”
   How do you manipulate these as a whole without having to specify each individual
   post?

Viewing 1 replies (of 1 total)

 *  [Brian](https://wordpress.org/support/users/briansteeleca/)
 * (@briansteeleca)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/styling-elements/#post-5890957)
 * All posts should also share a common class that you can target. For example:
 * `<article class="post-75 post type-post status-publish">`
 * In this example, the posts are identified with classes (rather than an ID). To
   target this specific post and make the text red, you would do this in your CSS:
 *     ```
       .post-75 {
           color: red;
       }
       ```
   
 * If you wanted to target **all** posts, you would use the common class that all
   posts share:
 *     ```
       .post {
           color: red;
       }
       ```
   
 * Your theme may use different classes, but the key is to target the class that
   is shared by all posts. Give it a try and if you still need help, let me know
   your site’s domain and I’ll have a look.

Viewing 1 replies (of 1 total)

The topic ‘Styling Elements’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Brian](https://wordpress.org/support/users/briansteeleca/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/styling-elements/#post-5890957)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
