Title: Styling WordPress Comments with CSS &amp; PHP help.
Last modified: August 19, 2016

---

# Styling WordPress Comments with CSS & PHP help.

 *  [margulies](https://wordpress.org/support/users/margulies/)
 * (@margulies)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/styling-wordpress-comments-with-css-amp-php-help/)
 * I’m working on a replication of [this guy’s comment section](http://www.blogussion.com/thesis/4-ways-customized-thesis-theme/)
   from scratch
 * As you can [see](http://cashmakerelite.com/blogging/steps-on-using-a-blog-to-make-your-first-online-dollar/),
   I’m almost done.
 * However, when using ‘Firebug’ and ‘SEO for Firefox’ you can see that this guy
   is calling things like:
 * > .surround ul li, ul.children, commentlist, div.surround.
 *  …Things that aren’t in the custom.css
 * How did he put those selectors in there?
 * I’m most concerned with `.surround` because that’s what he’s using to put a box
   around his threaded comments, organized like a list.
 * I appreciate your help.

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

 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/styling-wordpress-comments-with-css-amp-php-help/#post-1244957)
 * have you thought of asking the person behind the site you are umm.. using for
   inspiration?
 *  [pixelhub](https://wordpress.org/support/users/pixelhub/)
 * (@pixelhub)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/styling-wordpress-comments-with-css-amp-php-help/#post-1244959)
 * Hi,
 * **.surround ul li** is in his custom.css
 * > .custom .comments .surround ul li{background:#FFF url(images/blackGrad.gif)
   > repeat-x; border:1px solid #000; clear:both; -moz-border-radius:3px; overflow:
   > hidden; padding:10px; -webkit-border-radius:3px}
 *  [Clayton James](https://wordpress.org/support/users/claytonjames/)
 * (@claytonjames)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/styling-wordpress-comments-with-css-amp-php-help/#post-1244960)
 * check custom.css again.
 * //www.blogussion.com/wp-content/themes/thesis/custom/custom.css
 * Right off the bat I see lines 454, 438, 452…
 *  [Clayton James](https://wordpress.org/support/users/claytonjames/)
 * (@claytonjames)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/styling-wordpress-comments-with-css-amp-php-help/#post-1244963)
 * I thought the same thing at first, but in this case the site owner seems to be
   openly encouraging it – at least by the looks of the article.
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/styling-wordpress-comments-with-css-amp-php-help/#post-1244964)
 * nono, i was suggesting asking him for help, not for permission 😛
 *  [Clayton James](https://wordpress.org/support/users/claytonjames/)
 * (@claytonjames)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/styling-wordpress-comments-with-css-amp-php-help/#post-1244965)
 * That makes sense too! 🙂
 *  Thread Starter [margulies](https://wordpress.org/support/users/margulies/)
 * (@margulies)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/styling-wordpress-comments-with-css-amp-php-help/#post-1244969)
 * > check custom.css again.
   > //www.blogussion.com/wp-content/themes/thesis/custom/custom.css
   > Right off the bat I see lines 454, 438, 452…
 * I know it’s in css but .surround (for example) is being called from some function
   in his PHP. I would like to know what that code looks like so when style my comments
   using .surround, something actually happens.
 * I’ve talked to him and apparently it’s top secret.
 * He’s using the thesis theme, so the only 2 files he’s editing are:
 * custom.css (publicly visible)
    and custom_functions.php (not publicly visible)
 * I might be out of line trying to call a custom selector but I really just need
   to put a box around each comment.

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

The topic ‘Styling WordPress Comments with CSS & PHP help.’ is closed to new replies.

## Tags

 * [box](https://wordpress.org/support/topic-tag/box/)
 * [Comments](https://wordpress.org/support/topic-tag/comments/)
 * [css](https://wordpress.org/support/topic-tag/css/)
 * [li](https://wordpress.org/support/topic-tag/li/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [selectors](https://wordpress.org/support/topic-tag/selectors/)
 * [ul](https://wordpress.org/support/topic-tag/ul/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 4 participants
 * Last reply from: [margulies](https://wordpress.org/support/users/margulies/)
 * Last activity: [16 years, 7 months ago](https://wordpress.org/support/topic/styling-wordpress-comments-with-css-amp-php-help/#post-1244969)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
