[Solved] bg image tile across but not down?

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
buntrosgali
Forum Members
Forum Members
Posts: 167
Joined: Thu Apr 17, 2008 9:02 pm

[Solved] bg image tile across but not down?

Post by buntrosgali »

i have a bg image which i want to tile across to fit the users full screen

but i dont want it to tile downwards.

i have the code background-image:  url(uploads/images/bg.png); background-repeat: no-repeat;

but that just shows the bg image just once, how can i have it so it tiles vertical but not horizontal?
Last edited by Anonymous on Fri Aug 15, 2008 7:52 am, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: bg image tile across but not down?

Post by Dr.CSS »

When repeating, x is across and y is down...

background:  url(uploads/images/bg.png) repeat-x; no need to use -image...

If you are calling just a color you use background-color if you want a color in the background also then before url(**** put #ffffff your color hex code with space before and after it...
buntrosgali
Forum Members
Forum Members
Posts: 167
Joined: Thu Apr 17, 2008 9:02 pm

Re: bg image tile across but not down? (solved)

Post by buntrosgali »

cheers :D
christiaans
Power Poster
Power Poster
Posts: 300
Joined: Tue Mar 04, 2008 10:37 am

Re: [Solved] bg image tile across but not down?

Post by christiaans »

Marked solved.
Post Reply

Return to “Layout and Design (CSS & HTML)”