...

View Full Version : Repeated Background



Omen
10-16-2005, 09:07 PM
Hi I have coded my layout but I cant seem to get the background right :(

I want it to be on the right (top) side of the screen but instead it is repeated :(

CSS:
body {
margin, padding: 0em;
background-color:#000;
background-image: url(http://img281.imageshack.us/img281/2060/jamiesblogimage4pz.png) no-repeat;

HTML:
<body background="http://img281.imageshack.us/img281/2060/jamiesblogimage4pz.png"><!--Open body-->

What have I done wrong for it to be repeated and how do I get it on the right (top) on the screen?

_Aerospace_Eng_
10-16-2005, 09:18 PM
Lose the background in the body tag, and try this for the CSS

body {
padding:0;
margin:0;
background:#000 url(http://img281.imageshack.us/img281/2060/jamiesblogimage4pz.png) top right no-repeat;
}

Omen
10-16-2005, 09:26 PM
Thanks :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum