<!DOCTYPE html> <html> <body> <div style="width:100%; height:1200px;"> <div style="width:33%; float:left; background-color:red; height:1200px;"></div> <div style="width:33%; float:left; background-color:blue; height:1200px;"></div> <div style="width:33%; float:left; background-color:green; height:1200px;"></div> </div> <p><strong>NOTE: </strong> The presence of float property places the subsequent boxes one after another.</p> </body> </html>
Run
×
Share