0

I would like to have the height of the right borders of several div blocks to match. The blocks contain different number of lines of text.

As you can see, the right borders don't match in height:

.options {
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 16px;
  border-right: 1px #d0d2d3 solid;
  display: inline-block;
  width: 50px;
  text-align: center;
  vertical-align: middle
}

.list {
  display: inline-block
}
<html>

<div class="list">
  <div class="options">
    text
  </div>
  <div class="options">
    long text
  </div>
  <div class="options">
    long long text
  </div>
</div>

Anyone know how that can be done?

John M.
  • 2,642
  • 7
  • 26
  • 55

1 Answers1

0

You can use display: table-cell;

.options { 
    ...
    display: table-cell;
}
Programmer
  • 1,973
  • 1
  • 12
  • 20