Using background-size: cover, I can stretch the background to fit the full width of the page.
Using repeat-y, I can do a background repeat or tile vertically, the entire height of the page.
Is there a way to combine these two effects? Unfortunately, they don't seem to work together (at least in Chrome). It looks like I can either stretch in both directions with background-size: cover, or not stretch in the x direction, but repeat in the y direction.
Edit: using background-size: 100% Npx(where N is the image height), I can do the above, but it distorts the background image since it stretches in only one direction. Is there a way to scale down proportionally?
source
share