3
background: url(image) 0 / cover fixed;

Why is there:

  • A 0 (zero)?
  • A / (forward slash)?

What does that mean/do in CSS?

Opie-M
  • 39
  • 1
  • 5
  • 1
    http://stackoverflow.com/questions/7864448/background-size-in-shorthand-background-property-css3 – selami Nov 12 '16 at 18:11
  • This is shorthand css – mrid Nov 12 '16 at 18:13
  • Thanks! I didn't know what to search for to find the asnwer. – Opie-M Nov 12 '16 at 18:14
  • Possible duplicate of [What does this CSS font shorthand syntax mean?](http://stackoverflow.com/questions/4080265/what-does-this-css-font-shorthand-syntax-mean) –  Nov 12 '16 at 18:26

1 Answers1

2

This is just a shorthand of specifying the background image for a html page. Completely equivalent to:

background: url(image);
background-margin: 0
background-size: cover;
background-position: fixed;  
Vlad Balanescu
  • 664
  • 5
  • 27