Programming Exercises

Create a simple flexbox layout with two boxes side by side.

Easy

Problem Statement

Create a simple flexbox layout with two boxes side by side.

Sample Input

A webpage with two <div> elements.

Sample Output

The two boxes appear side by side.

Limits

Time: 2s · Memory: 256 MB

Code Editor
00:00
<!DOCTYPE html> <html> <head> <style> /* Add CSS here to style the flexbox layout */ </style> </head> <body> <div class="container"> <div class="box">Box 1</div> <div class="box">Box 2</div> </div> </body> </html>
Log in or sign up to run or submit your code.Log inSign up
Input
A webpage with two <div> elements.
Expected Output
The two boxes appear side by side.