Highlight the Background of Text
Wow, that's yellow bacground!
<span style="background-color:yellow;">Wow, that's yellow!</span>
Or,
you can use style CSS:
Put this between your HEAD-taggs:
<style>
#highlight {
background-color: #ffffaa;
text-align: center;
}
</style>
|
and
<span id="highlight">Wow, that's yellow bacground!</span> = Wow, that's yellow bacground!
If you change "span" to "div", you colour the whole line (and make a linebreak too):
<div id="highlight">Wow, that's yellow bacground!</div> = Wow, that's yellow bacground!
Or just:
<div style="background-color:yellow;">Wow, that's yellow bacground!</div> Wow, that's yellow bacground!
Free JavaScripts provided
by Winfolinx.com
Back