I want to know the use of '/' in the following css statement:-
background: url(a.jpg) center bottom / cover no-repeat;
I want to know the use of '/' in the following css statement:-
background: url(a.jpg) center bottom / cover no-repeat;
Copyright © 2021 Jogjafile Inc.
It is used to separate background-position and background-size value. Check the formal syntax of the
background
property:This allows you to use length-percentage values for both entities, e.g.:
is equivalent to:
The CSS shorthand rule from the question:
is equivalent to