csaxon
Forum Replies Created
-
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 »'); ?> </p><div class="backgroundcolor"> <?php the_content('CONTINUE READING »'); ?> </div><span class="backgroundcolor"> <?php the_content('<p>CONTINUE READING »'); ?> </span>I have no idea what to do.
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.
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.”
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.
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?
I tried using that css with this:
<p class="backgroundtext"><?php the_content('CONTINUE READING »'); ?></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? :-\