tags:

views:

25

answers:

2

Hi,

newbie question but i can't figure it out:

How to make the background image covers the whole page but no repeat?

thanks

A: 
* { margin:0; padding:0; }
body { background:url(/file.jpg) no-repeat top center; }

If it looks off you probably need more heightness.

html, body { height:100%; }
meder
adding "no-repeat top center" the image is now not even showing
sorry didn't realise i was using background-image.. Now how do stretch the image to cover the whole page?
+1  A: 

.

body{
  background-image:url(path to image) no-repeat left top
}

Your image should be large enough because you are not repeating it.

Sarfraz
adding "no-repeat lef top " the image is now not even showing
sorry didn't realise i was using background-image.. Now how do stretch the image to cover the whole page?
@ranald-yoh: Have a look at this please: http://css-tricks.com/how-to-resizeable-background-image/
Sarfraz