I have a group of 5 div
s, all with auto width.
The text will be inserted dynamically into each div and I want to change all div
s width to the largest of the 5.
Any ideas?
.box {
display: inline-block;
border: 1px solid #eaeaea;
}
<div class="box">Hi</div>
<div class="box">Hi John</div>
<div class="box">Hello John</div>
<div class="box">Hello John Doe</div>
I think I should be using JS, but I'm wondering if it's possible to avoid it.