I want to align 3 divs, next to each other. so I used display:table
to the parent div and display:table-cell
to the inner 3 divs.
Width of first 2 div is known and width of 3rd div is unknown. So the use of display:table-cell
works perfectly for me to adjust the width of 3rd div.
Now if I want to give spacing between 3 divs using margin-left
or margin-right
, then there is no effect. Please check code here.
Let me know if we can do that. Thanks in advance.