I’m making a navigation bar and I want a button that looks 3d.
body {
background: #fff;
}
div {
box-shadow: 5px 5px #202020;
background: #101010;
border-radius: 5px;
padding: 2rem;
color: #fff;
margin-top: 2rem;
}
<div>hello</div>
https://codepen.io/Jimothy104/pen/OJrxMYr
A bit like in this codepen but so that the corners extend to the box-shadow
I don’t really know how to so this so I’ve just used a box-shadow to start
2
Answers
You can add more shadow on it.
this is a button like a 3d button