Action |
Code |
Center A Background Image On A Page |
background:url(bgimage.jpg) no-repeat center; |
Color Behind A Centered Background Image |
background: #31CEFF url(bgimage.jpg) no-repeat center; |
Color Behind A Centered Background Image |
background: #31CEFF url(bgimage.jpg) no-repeat center; |
Fixed Background Image |
body{background-image:url('waterman.jpg');background-repeat:no-repeat;background-position:20px 60px;background-attachment:fixed;} |
Non-Tiling Background Images |
background:url(bgimage.jpg) no-repeat; |
Position Background Images |
body{background-image:url('waterman.jpg');background-repeat:no-repeat;background-position:20px 60px;} |