[Solved] Set width on div


If I’m understanding, try something like that:

.text_box {
  text-align: center;
  width: 495px;
  margin: 0 auto;}

and

.button {
  border: 2px solid #04fbc7;
  padding-top: 33px;
  padding-bottom: 35px;
  padding-left: 120px;
  padding-right: 120px;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.100em;
  display: block;}

Note that in the .button is like display: block;
because by default the ancor tag <a /> is displayed inline

otherwise, the ancor tag <a /> can not fill the width in a DIV

1

solved Set width on div