Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Заголовок документа</title> <style> section { display: flex; width: 50%; height: 200px; margin: auto; border-radius: 10px; border: 3px dashed #1c87c9; } p { margin: auto; /* Important */ text-align: center; } </style> </head> <body> <section> <p> Центрирован с помощью Flexbox.</p> </section> </body> </html>