PDA

View Full Version : positioning of my background


phil81
05-18-2010, 10:57 AM
can anyone help the background on one of my pages wont center could anyone have a look at my code and see where im going wrong?
the link to the page is
http://www.theddd.co.uk/book%20advert%20now.html

thanks

d a v e
05-18-2010, 11:11 AM
centres for me in latest firefox on vista. need more details of the problem

gentleone
05-18-2010, 01:32 PM
You forgot a semi-colon after 'no-repeat, but on the other hand there is actually a better approach for what you want.

With this image:
http://www.gentlemedia.nl/images/bg-icon.gif

And this piece of CSS:

html, body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}

html {
background: #71d40b url(images/bg-icon.gif) repeat-y left;
}

body {
background: url(images/bg-icon.gif) repeat-y right;
}

You'll get this result:
http://www.gentlemedia.nl/theddd.php

phil81
05-18-2010, 08:05 PM
thanks guys its sorted now