I am looking to align 3 divs inside a container div, with the arrangement of [LEFT] [CENTER] [RIGHT]. The container div should be 100% wide without a fixed width, and I want the center div to stay centered even when resizing the container. The left and right divs should expand or contract along with the container, while the center div has a fixed width. Currently, I have implemented the following code:
<div style="width: 100%">
<div style="float: left; height: 50px;"></div>
<div style="float: right; height: 50px;"></div>
<div style="margin: 0 auto; height: 50px; width: 500px;"></div>
</div>
However, the issue is that the left and right divs are not visible due to the lack of a set width.
Do you have any suggestions on how to achieve this layout?