Currently, I am exploring some new coding techniques to enhance my skills.
I have a slanted left corner design element. Now, I am trying to incorporate a box shadow effect as shown in the following image:
https://i.sstatic.net/1MnL2.png
This is the code snippet I am working with:
html, body {
margin: 0px;
}
.navbar {
position:relative;
content:"";
border-left: 300em solid #454545;
border-bottom: 120px solid transparent;
z-index: 2;
box-shadow: 0px 8px 23px 4px black;
}
.under-bar {
margin-top: -40px;
background: #851e39;
height: 200px;
opacity: 0.8
}
<html>
<body>
<div class="navbar">
</div>
<div class="under-bar">
</div>
</body>
</html>
Is there anyone who can guide me on how to add a box-shadow beneath the header?