html - css background pattern sprites revisited -
this question has answer here:
- css sprites , repeating backgrounds 2 answers
using css sprites icon-style images best practice , pretty easy.
using multiple repeating backgrounds in 1 image traditionally possible if either use vertical or horizontal repeat.
or it? meanwhile css3 , html5 , stuff, there way combine multiple background images in 1 css sprite make background pattern , use vertical , horizontal repetition?
edit/note: know not first time such question asked. most/all answers found time ago. i'm wondering if there solution today.
edit: illustrate i'm looking for: http://ibin.co/21lqyjvngdmb
yes can use css sprites repeating background.
the rule pretty simple: if want background repeat vertically (top bottom), place images in sprite horizontally (left right) , make sure individual images in sprite have same height. opposite case: when want repeat horizontally, sprite vertically.
check article better understanding. http://www.phpied.com/background-repeat-and-css-sprites/
Comments
Post a Comment