0

How would this be done?

Code: https://jsfiddle.net/6q352ysx/59/

They are both the same height, but they are uneven.

enter image description here

Which of these would get:

vertical-align: top;

vertical-align: bottom;

or would I use it on only one of them?

That, or would I be using

vertical-align: middle;

input[type=text] {
  font-size: 22px;
  width: 200px;
  color: #0059dd;
  background: #000000;
  border: 1px solid #0059dd;
}

input[type=submit] {
  font-size: 22px;
  color: #0059dd;
  cursor: pointer;
  height: 31px;
  background: black;
  border: 1px solid #0059dd;
  font-family: "Times New Roman", Times, serif;
}
<div class="info">
  <input id="input" type="text" name="someNameHere" placeholder="someValueHere" />
  <input id="sent" type="submit" value="Set" />
</div>
Eve Ninnall
  • 1
  • 3
  • 20

1 Answers1

0

Try this CSS:

.info {display:flex}

input[type=text] {
  font-size: 22px;
  width: 200px;
  color: #0059dd;
  background: #000000;
  border: 1px solid #0059dd;
}

input[type=submit] {
  font-size: 22px;
  color: #0059dd;
  cursor: pointer;
  background: black;
  border: 1px solid #0059dd;
  font-family: "Times New Roman", Times, serif;
}

Fiddle: https://jsfiddle.net/6q352ysx/11/

Kilmazing
  • 526
  • 7
  • 14