My project requires support for dreaded IE7, and ideally even IE6. However, on modern browsers like IE8, Safari, Firefox, and Chrome, I have achieved a flawless layout by using an outer div to enclose two boxes.
------------------------------------
| |
| -------------- ----------- |
| | | | | |
| | A | | B | |
| | | | | |
| -------------- ----------- |
| |
------------------------------------
To style A and B, I am using inline-block, with A floated left and B floated right. Both boxes contain internal divs and other elements.
However, the real challenge arises when dealing with IE6 and IE7, as the layout turns into a confusing mess, which looks something like this:
------------------------------------
| |
| -------------- |
| | | |
| | A | |
| | | |
| -------------- |
| ----------- |
| | | |
| | B | |
| | | |
| ----------- |
| |
------------------------------------
Are there any foolproof solutions to identify the root of the issue and resolve it?