Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Title of the document</title> <style> .container { border: 1px solid #666666; width: 350px; height: 150px; } .container span { display: inline-block; border: 1px solid #666666; width: 40%; } .small-box { height: 30%; background: #1c87c9; vertical-align: top; } .big-box { height: 50%; background: #8ebf42; } </style> </head> <body> <div class="container"> <span class="small-box"></span> <span class="big-box"></span> </div> </body> </html>