0
I’m trying to line up a div in the center, but it’s on the left. I’ve tried using <div align="center">
, tried to use text-align
and align-items
in css, but nothing works.
#json {
background-color:rgb(59, 54, 54);
color:rgb(204, 198, 198);
border-radius: 8px;
width: 300px;
align-items: center;
text-align:center;
}
<div id="json"> Conteúdo aqui </div>
adds a
margin: 0 auto;
– Ricardo Pontual
worked, thanks!
– user225490