Title: Problem styling author comments
Last modified: August 19, 2016

---

# Problem styling author comments

 *  [kitchenwench82](https://wordpress.org/support/users/kitchenwench82/)
 * (@kitchenwench82)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/problem-styling-author-comments/)
 * I’ve been tweaking a theme and am almost done, but I cannot get the author comment
   styling to apply for some reason:
 * Comment code:
 *     ```
       <div class="<?php if ($comment->user_id === $post->post_author) echo 'authorcomment'; else echo 'thecomment' ?>" id="comment-<?php comment_ID() ?>"></div>
   
       <div class="comment-body"><?php comment_text() ?></div>
       ```
   
 * CSS:
 *     ```
       .authorcomment {
       	margin: 10px 10px 10px 10px;
       	background: #dae7a2;
       	border: 1px solid #336600;
       	font-size:12px;
       	overflow: hidden;
       	height:100%;
       }
       .authorcomment .comment-body {
       	border: none;
       	margin: 10px 10px 10px 10px;
       	background: #dae7a2;
       	border: 1px solid #336600;
       }
       .authorcomment .comment-metadata {
       	padding: 11px 10px;
       	margin: 10px 10px 10px 10px;
       	background: #dae7a2;
       }
       ```
   
 * I’m no coding guru but I think it all looks okay, and yet the author comments
   aren’t showing their stylings in the actual blog – [http://www.insanitytheory.net/kitchenwench](http://www.insanitytheory.net/kitchenwench)
 * Can anyone tell me what I need to do to fix this up?

The topic ‘Problem styling author comments’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [kitchenwench82](https://wordpress.org/support/users/kitchenwench82/)
 * Last activity: [18 years, 1 month ago](https://wordpress.org/support/topic/problem-styling-author-comments/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
