Title: Use CSS within a post
Last modified: August 19, 2016

---

# Use CSS within a post

 *  [mbprouser](https://wordpress.org/support/users/mbprouser/)
 * (@mbprouser)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/use-css-within-a-post/)
 * Is it possible to use a css from a stylesheet within a post? So for example, 
   if I create a un-ordered list, could I give it a specific class? Or to add structure,
   create a <div> element and give it an ID or class?
 * I’m thinking a plugin will do the job???

Viewing 1 replies (of 1 total)

 *  [kill-switch413](https://wordpress.org/support/users/kill-switch413/)
 * (@kill-switch413)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/use-css-within-a-post/#post-1712740)
 * This can be done with your current CSS.
 * Please post your post css. Your comment.php
 * Basically with your css stylesheet if you want to try it yourself, to give the
   ul within that div it’s own property simply have this.
 * For example only.
 *     ```
       #comment {some style info}
          #comment .u-list {
             width:75%;
            }
   
          #comment .u-list ul {
             font-size:12px;
             }
          #comment .u-list li {
             more styling.
             }
       ```
   
 *     ```
       <div id="comment">
          <div class="u-list">
             <ul>
                <li></li>
                <li></li>
                <li></li>
             <ul>
          </div>
       </div>
       ```
   
 * Make some sense? I’m trying to track down a better example. A plugin is really
   not the answer. You may have to edit your functions also if your adding a div,
   just so everything gets styled accordingly.

Viewing 1 replies (of 1 total)

The topic ‘Use CSS within a post’ is closed to new replies.

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [kill-switch413](https://wordpress.org/support/users/kill-switch413/)
 * Last activity: [15 years, 8 months ago](https://wordpress.org/support/topic/use-css-within-a-post/#post-1712740)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
