css darken background code example
Example 1: how to darken background image with css
#landing-wrapper {
display: table;
width: 100%;
background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('landingpagepic.jpg');
background-position: center top;
height: 350px;
}
Example 2: How do I make my background color darker in CSS
body {
display: grid;
place-items: center;
height: 100vh;
}
div {
width: 50vw;
height: 50vh;
background: linear-gradient(to bottom right, #55566a, #282834);
border-radius: 10px;
}