G
G
GoodProject2015-10-10 05:15:42
css
GoodProject, 2015-10-10 05:15:42

Why doesn't this background entry work?

background: url(../img/header_bg.jpg) no-repeat center center cover ;
You need to transfer cover (bgsize:cover) and it will work, why?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex K, 2015-10-10
@GoodProject

Because according to the specification, background size should come after bg position and be separated by a slash. Try:

background: url(../img/header_bg.jpg) no-repeat center/cover;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question