W3Schools Background short command reference

Problem

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

With this css rule I got white background:

<style>
body
{ 
background: #00ff00 url('smiley.gif') no-repeat fixed cover center; 
}
</style>

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

Problem courtesy of: user3327101

Solution

From the Mozilla reference for background:

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

So:

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

Discussion

There is currently no discussion for this recipe.

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