Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Title of the document </title> <style> .start { width: 400px; height: 150px; border: 1px solid #666; display: -webkit-flex; -webkit-justify-content: flex-start; display: flex; justify-content: flex-start; } .start div { width: 70px; height: 70px; background-color: #ccc; border: 1px solid #666; } </style> </head> <body> <h2>Justify-content property example</h2> <p>Here the "justify-content: flex-start" is set:</p> <div class="start"> <div>1</div> <div>2</div> <div>3</div> </div> </body> </html>