Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Заголовок документа</title> <style> .space-around { width: 400px; height: 150px; border: 1px solid #666; display: -webkit-flex; /* Safari */ -webkit-justify-content: space-around; /* Safari 6.1+ */ display: flex; justify-content: space-around; } .space-around div { width: 70px; height: 70px; background-color: #ccc; border: 1px solid #666; } </style> </head> <body> <h2>Пример свойства justify-content</h2> <p>Установлено свойство "justify-content: space-around":</p> <div class="space-around"> <div>1</div> <div>2</div> <div>3</div> </div> </div> </body> </html>