Answer the question
In order to leave comments, you need to log in
How can I make an element's width equal to its neighboring element if the width cannot be fixed?
The structure is like this:<div>div+ul>li>img+span</div>
Answer the question
In order to leave comments, you need to log in
If the parent is set to display: flex; then child elements will default to the same height (smaller ones stretch to the tallest)
Flexbox will help solve the problem
https://css-tricks.com/snippets/css/a-guide-to-flexbox/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question