How can I style "the_content" in my blog? Just the text, not the whole post
-
I want to be able to styleize the text in the body of my blog. I want the font to have a background behind the text, just the text, not the whole post.
Example: cobahair.co.uk
I want the body of my blog post to have a gray background behind the text like on the example site. I know how to do it with css, but I can’t get it to work with my theme. I tried to do this, but it doesn’t work:
<span class="backgroundtext"><?php the_content('<p>CONTINUE READING »'); ?></span>
.backgroundtext { font-family:Tahoma, Arial; font-size:11px; background-color: #e5e3d9; padding-top: 4px; padding-right: 5px; padding-bottom: 4px; padding-left: 5px; line-height: 25px; margin-bottom:1px; color:#4413c; }
Any help would be greatly appreciated. Thank you.
Viewing 13 replies - 1 through 13 (of 13 total)
Viewing 13 replies - 1 through 13 (of 13 total)
- The topic ‘How can I style "the_content" in my blog? Just the text, not the whole post’ is closed to new replies.