j05hr
11-08-2009, 07:32 PM
Is there any way to make a background colour just for text in CSS? I was highlighting someing and decided I actually quite liked how it looked.
http://img35.imageshack.us/img35/5881/style1l.jpg (http://img35.imageshack.us/i/style1l.jpg/) http://img35.imageshack.us/img35/style1l.jpg/1/w659.png (http://g.imageshack.us/img35/style1l.jpg/1/)
When you put it as the background colour, it obviously colours the whole div...
http://img35.imageshack.us/img35/668/style2ki.jpg (http://img35.imageshack.us/i/style2ki.jpg/) http://img35.imageshack.us/img35/style2ki.jpg/1/w670.png (http://g.imageshack.us/img35/style2ki.jpg/1/)
So can you set a colour just for the background of the text in CSS?
http://img35.imageshack.us/img35/5881/style1l.jpg (http://img35.imageshack.us/i/style1l.jpg/) http://img35.imageshack.us/img35/style1l.jpg/1/w659.png (http://g.imageshack.us/img35/style1l.jpg/1/)
When you put it as the background colour, it obviously colours the whole div...
http://img35.imageshack.us/img35/668/style2ki.jpg (http://img35.imageshack.us/i/style2ki.jpg/) http://img35.imageshack.us/img35/style2ki.jpg/1/w670.png (http://g.imageshack.us/img35/style2ki.jpg/1/)
So can you set a colour just for the background of the text in CSS?