Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Title of the document</title> <style> .clear { clear: both; } .clear div { width: 50%; display: inline-block; } #col1 { background-color: #3ad67d; float: left; } #col2 { background-color: #d5d6e6; } </style> </head> <body> <div class="clear"> <div id="col1">Text 1</div> <div id="col2">Text 2</div> </div> </body> </html>