4 Replies - 290 Views - Last Post: 29 January 2012 - 01:12 AM

Topic Sponsor:

#1 PixelBit  Icon User is offline

  • D.I.C Head

Reputation: 6
  • View blog
  • Posts: 196
  • Joined: 17-July 11

CSS: How do you specify where a repeating background should start

Posted 28 January 2012 - 03:27 PM

ok so my problem can be seen here: http://relent.dyndns...harks/index.php (but only while my pc is on, hopefulyl i'll have a solution before i go to bed)

Basically you can see that the shadow goes higher than it should, normally you can just do
background: url("...") 0px 10px;

and that will start from 10px down the page but when it's repeating on the y axis that doesn't work. How can i achieve this?

So to sum up, i want to make a repeat-y background image start further down the page (preferably without bringing ore divs into the equation as that will mess with my layout)

This post has been edited by PixelBit: 28 January 2012 - 03:31 PM


Is This A Good Question/Topic? 0
  • +

Replies To: CSS: How do you specify where a repeating background should start

#2 Lemur  Icon User is offline

  • OpenBSD Head
  • member icon

Reputation: 683
  • View blog
  • Posts: 2,519
  • Joined: 28-November 09

Re: CSS: How do you specify where a repeating background should start

Posted 28 January 2012 - 09:08 PM

You can with a background image, but with this I would just add another container type div to take care of it. If your layout is clean and stable it shouldn't be a problem.
Was This Post Helpful? 0
  • +
  • -

#3 PixelBit  Icon User is offline

  • D.I.C Head

Reputation: 6
  • View blog
  • Posts: 196
  • Joined: 17-July 11

Re: CSS: How do you specify where a repeating background should start

Posted 28 January 2012 - 10:08 PM

View PostLemur, on 28 January 2012 - 09:08 PM, said:

You can with a background image, but with this I would just add another container type div to take care of it. If your layout is clean and stable it shouldn't be a problem.


Theres another problem with that being that i want it to start a little way down an image not at the top or bottom of it... Hmm...
Was This Post Helpful? 0
  • +
  • -

#4 Lemur  Icon User is offline

  • OpenBSD Head
  • member icon

Reputation: 683
  • View blog
  • Posts: 2,519
  • Joined: 28-November 09

Re: CSS: How do you specify where a repeating background should start

Posted 28 January 2012 - 11:55 PM

http://css-tricks.com/css-sprites/
Was This Post Helpful? 1
  • +
  • -

#5 PixelBit  Icon User is offline

  • D.I.C Head

Reputation: 6
  • View blog
  • Posts: 196
  • Joined: 17-July 11

Re: CSS: How do you specify where a repeating background should start

Posted 29 January 2012 - 01:12 AM

View PostLemur, on 28 January 2012 - 11:55 PM, said:




Thanks for the article, I can't belive i didnt know of this site. Anyway it's still a problem, all those exaples are with no-repeat. It's also the exact same as what i did, but it doesnt work when you repeat the image.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1