W3Schools Background short command reference


CSS Syntax:
background: color position size repeat origin clip attachment image|initial|inherit;

With this css rule I got white background:

background: #00ff00 url('smiley.gif') no-repeat fixed cover center; 

What's wrong? Any Idea? I try to set background-size cover with short background command?

Problem courtesy of: user3327101


From the Mozilla reference for background:

background-size: This property must be specified after background-position, separated with the '/' character.


background: #00ff00 url('smiley.gif') no-repeat fixed center / cover;
Solution courtesy of: Guffa


There is currently no discussion for this recipe.

This recipe can be found in it's original form on Stack Over Flow.