Working on the Web Design project #2: Survey Form. In the example there is a bit of code I am not following:
body::before {
content: '';
position: fixed;
top: 0;
left: 0;
height: 100%;
width: 100%;
z-index: -1;
background: var(--color-darkblue);
background-image: linear-gradient(
115deg,
rgba(58, 58, 158, 0.8),
rgba(136, 136, 206, 0.7)
),
url(...);
background-size: cover;
background-repeat: no-repeat;
background-position: center;
}
Specifically the second line: content: '';
? It appears to insert nothing at all? Why?
Cheers
opalko