I have 2 divs: one in the left side and one in the right side of my page. The one in the left side has fixed width and I want the one of the right side to f
I ran into this same problem trying to layout some jqueryUI controls. Although the common philosophy now is "use DIV
instead of TABLE
", I found in my case using TABLE worked much better. In particular, if you need to have straightforward alignment within the two elements (e.g., vertical centering, horizontal centering, etc.) the options available with TABLE give simple, intuitive controls for this.
Here's my solution:
Sample solution for fixed left, variable right layout
Right