I have a table inside a div. I need to make the div increase its width only when the table width increases. Can someone please explain how to achieve this?
Use a <span> and set the display: inline-block.
<span>
display: inline-block
true, agree
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Use a
<span>
and set thedisplay: inline-block
.true, agree