CSS Background Code
The following CSS background codes demonstrate the various CSS properties you can use to style the background of any HTML element. CSS Background Color <p style="background-color:yellow;" >This text has a background color applied.</p> This results in: This text has a background color applied. CSS Background Image <p style="height:100px; background-image:url(/pix/smile.gif) ;">This text has a background image applied. </p> This results in: This text has a background image applied. CSS Background Repeat Determines whether the background image repeats (tiles) or not. For info on the possible values, see the background-repeat page. <p style="height:100px;background-image:url(/pix/smile.gif); background-repeat:no-repeat; ">This background image does not repeat. </p> This results in: This background image does not repeat. CSS Background Position Determines the position of the background image. <p style="