Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Title of the document</title> <style> .flex-container { display: flex; } .flex-container div { width: 120px; padding: 30px 10px; margin-right: -2px; border: 2px solid #8ebf42; } .flex-container div.two { flex-shrink: 0; } .flex-container span { display: flex; justify-content: center; align-items: center; width: 60px; height: 60px; margin: auto; border-radius: 50%; background-color: #8ebf42; font-size: 28px; font-weight: 700; color: #fff; } </style> </head> <body> <div class="flex-container"> <div> <span>1</span> </div> <div class="two"> <span>2</span> </div> <div> <span>3</span> </div> <div> <span>4</span> </div> <div> <span>5</span> </div> <div> <span>6</span> </div> </div> </body> </html>