Question

I'm wondering if this is possible with CSS. I want my background image to begin from an absolute center alignment and tile repeat outwards from there.

Background image to repeat outwards from center

Was it helpful?

Solution 2

Found the solution:

background-attachment: fixed

See example: http://codepen.io/ryanmclaughlin/pen/3ba02dcabedee91b09cf816d43d148c4

OTHER TIPS

You can use background-position property to center the background and set the repeat value to background, background: url('yourimage') repeat;

#pattern{
    background: url('pattern.jpg') center center;
    /* other stuff here */
}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top