Title: csaxon's Replies | WordPress.org

---

# csaxon

  [  ](https://wordpress.org/support/users/csaxon/)

 *   [Profile](https://wordpress.org/support/users/csaxon/)
 *   [Topics Started](https://wordpress.org/support/users/csaxon/topics/)
 *   [Replies Created](https://wordpress.org/support/users/csaxon/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/csaxon/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/csaxon/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/csaxon/engagements/)
 *   [Favorites](https://wordpress.org/support/users/csaxon/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [How can I style "the_content" in my blog? Just the text, not the whole post](https://wordpress.org/support/topic/how-can-i-style-the_content-in-my-blog-just-the-text-not-the-whole-post/)
 *  Thread Starter [csaxon](https://wordpress.org/support/users/csaxon/)
 * (@csaxon)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/how-can-i-style-the_content-in-my-blog-just-the-text-not-the-whole-post/#post-2051287)
 * Neither
 *     ```
       .backgroundcolor p * {
            background-color: green;
       }
       ```
   
 * nor
 *     ```
       .backgroundcolor p span {
            background-color: green;
       }
       ```
   
 * did anything to format the text. There wasn’t a green background behind anything.
   I’ve tried everything with each code.
 *     ```
       <p class="backgroundcolor">
       <?php the_content('<p>CONTINUE READING &raquo;'); ?>
       </p>
       ```
   
 *     ```
       <div class="backgroundcolor">
       <?php the_content('CONTINUE READING &raquo;'); ?>
       </div>
       ```
   
 *     ```
       <span class="backgroundcolor">
       <?php the_content('<p>CONTINUE READING &raquo;'); ?>
       </span>
       ```
   
 * I have no idea what to do.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [How can I style "the_content" in my blog? Just the text, not the whole post](https://wordpress.org/support/topic/how-can-i-style-the_content-in-my-blog-just-the-text-not-the-whole-post/)
 *  Thread Starter [csaxon](https://wordpress.org/support/users/csaxon/)
 * (@csaxon)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/how-can-i-style-the_content-in-my-blog-just-the-text-not-the-whole-post/#post-2051262)
 * That’s close, but not exactly what I’m looking for. I want to be able to see 
   the background between the lines since I have a pretty big line-height. I dont
   want the whole text area to have a background, just behind the words. In other
   words, I won’t want the background to have a fixed width. I want the background
   color to stop when the words stop.
 * Here’s a picture showing what that CSS declaration does, in comparison to what
   I am trying to achieve: [http://i51.tinypic.com/2j4uez7.jpg](http://i51.tinypic.com/2j4uez7.jpg).
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [How can I style "the_content" in my blog? Just the text, not the whole post](https://wordpress.org/support/topic/how-can-i-style-the_content-in-my-blog-just-the-text-not-the-whole-post/)
 *  Thread Starter [csaxon](https://wordpress.org/support/users/csaxon/)
 * (@csaxon)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/how-can-i-style-the_content-in-my-blog-just-the-text-not-the-whole-post/#post-2051244)
 * I’ve been reading around and I don’t think there is any solution to this. Unless
   there is another way to pull the content from the blog, because I don’t think
   you can format just the text-background i using “the_content.”
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [How can I style "the_content" in my blog? Just the text, not the whole post](https://wordpress.org/support/topic/how-can-i-style-the_content-in-my-blog-just-the-text-not-the-whole-post/)
 *  Thread Starter [csaxon](https://wordpress.org/support/users/csaxon/)
 * (@csaxon)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/how-can-i-style-the_content-in-my-blog-just-the-text-not-the-whole-post/#post-2051221)
 * I’ve tried that, but it gives the whole DIV the background color. I’m attempting
   just to have a background behind the text itself, kind of like a highlight of
   the text.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [How can I style "the_content" in my blog? Just the text, not the whole post](https://wordpress.org/support/topic/how-can-i-style-the_content-in-my-blog-just-the-text-not-the-whole-post/)
 *  Thread Starter [csaxon](https://wordpress.org/support/users/csaxon/)
 * (@csaxon)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/how-can-i-style-the_content-in-my-blog-just-the-text-not-the-whole-post/#post-2051219)
 * I’m guessing I can’t just wrap the_content php in coding to do this. Is there
   any other code I can use in order to edit the body of my blog posts with css?
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [How can I style "the_content" in my blog? Just the text, not the whole post](https://wordpress.org/support/topic/how-can-i-style-the_content-in-my-blog-just-the-text-not-the-whole-post/)
 *  Thread Starter [csaxon](https://wordpress.org/support/users/csaxon/)
 * (@csaxon)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/how-can-i-style-the_content-in-my-blog-just-the-text-not-the-whole-post/#post-2051161)
 * I tried using that css with this:
 * `<p class="backgroundtext"><?php the_content('CONTINUE READING &raquo;'); ?></
   p>`
 * But the text of the entry still remains unchanged unfortunately. It is still 
   in the default plain black Time New Roman font.
 * Any other ideas? :-\

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