D
D
Dmitry2018-02-17 14:54:41
css
Dmitry, 2018-02-17 14:54:41

How to align the height of divs?

5a8817f215737301428872.png
There are such blocks. I don’t know how to adjust the height of the first and second to the height of the second? To be the same height.
CSS block code at the moment:

.service-item {
    display: inline-table;
    width: 31%;
    border: 3px #FFBA26 solid;
    border-radius: 5px;
    padding: 10px;
    margin-right: 10px;
    margin-top: 10px;
}

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nikita Kit, 2018-02-17
@liggth

Then you have to forget about inline-table
https://codepen.io/ShadowOfCasper/pen/eVyRKv

D
dom1n1k, 2018-02-17
@dom1n1k

Flex or.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question