Anatoly Lubarsky

Logo
MSSQL, .NET, Design. Life and Music

HowTo Add Image Background to Body in CSS

CSS tip that demonstrates how to define image background for body tag in CSS. Pay attention to no-repeat value for background-repeat attribute to make sure the image does not repeat itself.


body 
{
    background: url("mypicture.gif");
    background-repeat: no-repeat;
    background-position: center;
}

Related Posts:

Monday, December 22, 2003 7:02 AM

If your feedback doesn't appear right away, please be patient as it may take a few minutes to publish.

Post a Comment

Protected by CAPTCHAEnter the code you see
Name (*)  
E-mail (*)  
Url
Remember

Comment (*)