# Can I give font's a background in a CSS?

**URL:** <https://boards.straightdope.com/t/can-i-give-fonts-a-background-in-a-css/382420>\
**Category:** Factual Questions\
**Created:** [December 1, 2006, 1:23am UTC](https://boards.straightdope.com/t/can-i-give-fonts-a-background-in-a-css/382420 "2006-12-01T01:23:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Surbey](https://avatars.discourse-cdn.com/v4/letter/s/4491bb/32.png) [@Surbey](https://boards.straightdope.com/u/Surbey)\
**Post date:** [December 1, 2006, 1:23am UTC](https://boards.straightdope.com/t/can-i-give-fonts-a-background-in-a-css/382420/1 "2006-12-01T01:23:43Z")

</div>

I’m working on a myspace and I think the text would look really cool if I could give it a background. Just the text. Any ideas?

---

<div class="post-metadata">

**Author:** ![tanstaafl](https://avatars.discourse-cdn.com/v4/letter/t/ba8739/32.png) [@tanstaafl](https://boards.straightdope.com/u/tanstaafl)\
**Post date:** [December 1, 2006, 2:42am UTC](https://boards.straightdope.com/t/can-i-give-fonts-a-background-in-a-css/382420/2 "2006-12-01T02:42:18Z")

</div>

[QUOTE=Surbey]  
I’m working on a myspace and I think the text would look really cool if I could give it a background. Just the text. Any ideas?  
[/QUOTE]

I’m not that familiar with how MySpace does things, but…

\<DIV STYLE=“color: green; background: yellow;”\>Your text here\</DIV\>

…should work.
