Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Заголовок документа</title> <style> #big-box{ width: 200px; height: 200px; background-color: #666666; } #small-box{ width: 100px; height: 100px; background-color: #8ebf42; } </style> </head> <body> <h2>Центрирование контента</h2> <div id="big-box"> <div id="small-box"></div> </div> </body> </html>