Вопрос

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

Это было полезно?

Решение 2

Found the solution:

background-attachment: fixed

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

Другие советы

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 */
}
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top