HTML CSS examples for CSS Layout:2 Column
CSS two columns dynamic width
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> #lineContainer {<!--from w w w.java2 s. c om--> overflow: hidden; outline: 1px solid red; width: 300px } #lineLeft { overflow: hidden; white-space: nowrap; background: #f0f } #lineRight { float: right; background: #ccc } </style> </head> <body> <div id="lineContainer"> <div id="lineRight"> right </div> <div id="lineLeft"> left </div> </div> </body> </html>