Feaured Profiles


Your profile here? Be featured now!

            


Learning the CSS CODE for body background

Contributed by CaDeAtH on August 13th, 2008 Categories: Html/Style Sheet Codes 24,882 Views
1 Star2 Stars (+108 rating, 62 votes)
Loading ... Loading ...

body {
background-image: url(’url’);
background-position: top center;
background-repeat: repeat;
background-color: #;
background-attachment: scroll;
}

body - this is the OBJECT of the CSS

{ } - the start and end of the code

background-image: url(’url’); - this is the code for background IMAGES. URL means the location of your file

background-position - Sets the starting position of a background image

attributes: top left, top center, top right, center left, center center, center right, bottom left, bottom center, bottom right, x% y%, xpos ypos

background-repeat - Sets if/how a background image will be repeated

attributes: repeat, repeat-x, repeat-y, no-repeat

background-attachment - Sets whether a background image is fixed or scrolls with the rest of the page

attributes: scroll, fixed





Credits to Friendstertalk.com for the CSS and JS codes.

Leave a Reply