I am having trouble getting this to validate and work properly.
body {
background: #020817 url('');
background-repeat: no-repeat;
background-position: top center;
background-size: 100% auto;
body::after {
display: block;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));
content: '';
}
}
I've done some searching and I can't seem to find where I've gone wrong. I'm trying to add a gradient overlay to a background image.