1#example1 {
2 background: url(mountain.jpg);
3 background-repeat: no-repeat;
4 background-size: auto;
5}
6
7#example2 {
8 background: url(mountain.jpg);
9 background-repeat: no-repeat;
10 background-size: 300px 100px;
11}
1#example1 { /* Example1 has an auto background size */
2 background: url(mountain.jpg);
3 background-repeat: no-repeat;
4 background-size: auto;
5}
6
7#example2 { /* Example2 has an fixed background size */
8 background: url(mountain.jpg);
9 background-repeat: no-repeat;
10 background-size: 300px 100px;
11}
1.class{
2 background: url("../images/icons/map.png") no-repeat center center/50px 50px fixed;
3}