.center-div { display: flex; justify-content: center; } form > :first-child { border: solid white 1px; border-top-left-radius: 10px; border-top-right-radius: 10px; } form > :last-child { border: solid white 1px; border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; } fieldset { border: solid white 1px; padding: 10px; } input, label, legend { font-family: monospace; color: white; font-size: 14px; background-color: black; } input { border: solid white 1px; } button { margin-top: 0px; } .labels-inputs { display: grid; grid-template-columns: auto auto; column-gap: 10px; }