0
I’m trying to make a calculator and I’m not being able to let the round buttons get a little flat, also I’m not being able to leave the 0 the same way it is in the picture I wanted to know how to position the 0 the same way as the picture.
.container {
margin: 0 auto;
position: relative;
width: 335px;
padding: 10px;
background: black;
display: grid;
grid-template-columns: repeat(4, 1fr);
/* grid-gap: 16px; */
}
.container > div {
text-align: center;
padding: 25px;
/* font-size: 30px; */
border-radius: 50%;
color: white;
margin: 0 7px 11px 0;
font-family: sans-serif;
cursor: pointer;
}
/* 192 */
.item1 {
background-color: #a5a5a5;
color: black;
}
.item2 {
background-color: #fe9e09;
}
.item3,
.item4 {
background-color: #333333;
}
.teste {
color: white;
margin-bottom: 77px;
margin-top: 441;
background: transparent;
box-shadow: none;
font-size: 80px;
}
<div class='container'>
<div class="item1">AC</div>
<div class="item1">+/-</div>
<div class="item1">%</div>
<div class="item2">:</div>
<div class="item3">7</div>
<div class="item3">8</div>
<div class="item3">9</div>
<div class="item2">x</div>
<div class="item3">4</div>
<div class="item3">5</div>
<div class="item3">6</div>
<div class="item2">-</div>
<div class="item3">1</div>
<div class="item3">2</div>
<div class="item3">3</div>
<div class="item2">+</div>
<div class="item4">0</div>
<!-- <div class='item4'></div> -->
<div class="item3">,</div>
<div class="item2">=</div>
</div>
Very good, only one missing
text-align: left !important;
to look the same ;)– hugocsl