PDA

View Full Version : HTML Background.



NURAVE
10-12-2007, 07:37 PM
Hey,

Im doing a myspace design and i need to put a background that repetas downwards. k im a noob at html so dont laugh :)

{background}
body
{ font-size: 1px;
line-height: 1px;
background-color: 000000;
background-image: url("http://img236.imageshack.us/img236/9080/backgroundfz2.jpg");
background-repeat: repeat-n;
background-position: top center;
font-family: Arial, sans-serif;
color: ffffff;
}

What have i done wrong cos it dont work. Its probs something realy simple but im thick lol :)

Jordy
10-12-2007, 08:13 PM
<body background="http://img236.imageshack.us/img236/9080/backgroundfz2.jpg">

Simple as ;)

d17c
10-12-2007, 08:31 PM
Or... change repeat-n to repeat-y (i think)
:)

[Oli]
10-12-2007, 08:40 PM
repeat-n does not exist

its either

repeat-x (horizontally)
repeat-y (vertically)
no-repeat (place image only once)

Decode
10-12-2007, 08:53 PM
body

{font-size: 1px;
line-height: 1px;
background-color: #000000;
background-image: url ("http://img236.imageshack.us/img236/9080/backgroundfz2.jpg");
background-repeat: repeat-y;
background-position: top center;
font-family: Arial, sans-serif;
color: #ffffff;
}



You missed the '#' infront of the colours and repeat-n doesnt exist :)

Want to hide these adverts? Register an account for free!