5 replies [Last post]
gausie
Offline
newbie
Last seen: 10 years 50 weeks ago
Joined: 2004-07-28
Posts: 4
Points: 2

can i make an image repeat for the background along the y axisl, but starting at a specific point on the axis

so it repeats vertically from 40px down?

thanks

sam

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 6 days 18 hours ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5343
Points: 2964

background image repeat problem

Hi gausie,
Have you tried using background-position you can use values such as pixels to position.

Hope that helps

rtm223
rtm223's picture
Offline
Enthusiast
Last seen: 16 years 24 weeks ago
Joined: 2004-05-18
Posts: 58
Points: 0

background image repeat problem

Tony wrote:
Hi gausie,
Have you tried using background-position you can use values such as pixels to position.

Hope that helps

Tony, if I understand the question correctly this won't work. You can set the background to start repeating at a certain point using the background-position attribute, but it will still repeat up as well as down. As far as I am aware, you will have to have the background repeat from top to bottom of the element and add another element on top, to hide it. Or add a top margin. It depends on the application which is more appropriate.

Can you link us and it might be possible to give advice that's a little less vague :?

css layout tutorials - in depth layout tutorials for all you newbies D maybe even some stuff for you not-so-new-bies out there P

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 6 days 18 hours ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5343
Points: 2964

background image repeat problem

Hi rtm223,
Thanks for pointing that out, I thought it sounded too easy Smile

rtm223
rtm223's picture
Offline
Enthusiast
Last seen: 16 years 24 weeks ago
Joined: 2004-05-18
Posts: 58
Points: 0

background image repeat problem

Tony wrote:
Thanks for pointing that out, I thought it sounded too easy Smile

It's always easier to spot the mistakes of others than when you make them yourself Wink

css layout tutorials - in depth layout tutorials for all you newbies D maybe even some stuff for you not-so-new-bies out there P

thepineapplehead
thepineapplehead's picture
Offline
Guru
Last seen: 32 weeks 1 day ago
Joined: 2004-06-30
Posts: 9668
Points: 801

background image repeat problem

I'm pretty sure you can just use repeat-x or repeat-y, can't you?

Verschwindende wrote:
  • CSS doesn't make pies