New User
joined:Nov 29, 2011
posts: 1
votes: 0
Just wanted to post an update on an ancient thread (too old to reply):
[
webmasterworld.com ]
The goal:
Add a background to text only (not to the 100% wide p tag)
The "usual" solution:
use <span> to wrap your text and give it a background color.
The issue with the "usual" solution:
wysiwyg editors use <p> tags to wrap text, not <span> tags (and there are some discussions going on the SEO aspect of using <p> tags...)
My solution:
.contentcontainer p {background:white;display:inline;clear:left;float:left;}
Greetings,
Manuel