PDA

View Full Version : Just a quick question prob really simple.



Massimo
05-01-11, 04:54
I need to change a repeat command to only repeat the picture 25 times

Its a background image like 1 pix in hight but it repeats all the way down my web page and i only want it to repeat down the first 1/6

this is the code i have to work with.


.container_container{background-image:url(../images/verticle_bg.png); background-position:center; background-repeat:repeat-y; background-color:#ff0000; }



Thanks all.

Oh just let ya know background-repeat shold have an X not 0

Added after 2 minutes:

Ok my site is not RED anymore :P and i worked out that no-repeat works but now centers the image :(

Haha i done it :D

background-repeat:no-repeat and background-postition:TOP

man im so smart for 5am :P

Didnt do what i wanted so just made a huge header pic with white in the middle.

Smifis
06-01-11, 09:32
Create a div 25 times the height of the background image and position absolutely to the top left hand corner

Rhys
07-01-11, 22:02
since its in css.

and its only 1px in height.

so add height: 25px; into the css.

????

Smifis
08-01-11, 18:04
onto a background image?

I'd like to know how to do that without setting the body objects height to 25px. :D

Rhys
08-01-11, 22:22
ahhh yes forgot bout that.

i know u can do like (image.png) 0 0 10px 0; but thats margin :/