Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html lang="ru">
- <head>
- <meta charset="UTF-8">
- <title>строго по центру</title>
- <style>
- body, html {
- margin: 0;
- padding: 0;
- width: 100%;
- height: 100%;
- background-color: #404040;
- }
- #test {
- position: absolute;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- width: 480px;
- height: 360px;
- margin: auto;
- border-radius: 10px;
- background-color: #fff;
- }
- </style>
- </head>
- <body>
- <div id="test"></div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement