HTML CSS examples for CSS Property:background-color
Set span background-color throughout the line like in div
<html> <head> <style> pre span { display: block; } </style> </head> <!-- ww w . j a v a 2s . c o m--> <body> <pre> this is a test <span style="background-color:#ddd;"> test test test test <br> text text text text text </span> and some more text </pre> </body> </html>