i set an image as a background but i don't know how to position it, i want it to be on top and centered. what is the css code for that one? thanks from now body { background-image: url('exam.jpg'); background-repeat: no-repeat; background-position: center; } done it guys thanks
I would probably simplify that to: body { background:url('exam.jpg') top center no-repeat; } Shorthand CSS, you can shorten all the background properties to a single line. The key word you were looking for is 'top'.