- Code: Select all
body
{
background-image: url("bg.jpg");
background-repeat: no-repeat;
background-position: 50% 50%
}
Get rid of
- Code: Select all
<body img src="file.jpg">
from your code and include the first bit of code in to your
CSS.
The first "50%" is the x value, the second is the y value, to move it up and down change the second % etc.
Hope this helps
Craig