Home > Article > Web Front-end > CSS layout with fixed width on the left and adaptive width on the right_Experience exchange
An expert in BI specifically discussed this layout method, but he used more hacks and avoided IE6's dtd. In actual use, I found that avoiding the dtd definition of IE6 will cause the ajax modal box to be unable to be centered (a VS control, automatically generated code, is difficult to modify). So I wrote a simple layout with two columns on the left and right. No hacks were used. It was very simple, just for practice.
css code: both left and right stick to the left side. Set left above right (z-index); add a content layer (content) inside right; set content to 200px from the left side of right, which is exactly equal to the width of left.