Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Document</title>
- <style>
- html, body {
- margin: 0;
- padding: 0;
- }
- body {
- position: fixed;
- width: 100vw;
- height: 100vh;
- /* Following 4 properties are copied from website:
- https://www.magicpattern.design/tools/css-backgrounds */
- background-color: wheat;
- opacity: 1;
- background-image: radial-gradient(#000000 1px, antiquewhite 1px);
- background-size: 40px 40px;
- display: flex;
- justify-content: center;
- }
- .test {
- background-color: white;
- box-shadow: 5px 5px 0 black;
- border-radius: 5%;
- border: 2px solid black;
- height: fit-content;
- width: 20rem;
- padding: 20px;
- margin-top: 50px;
- }
- .test:hover {
- box-shadow: 10px 10px 0 black;
- }
- .test h1, p {
- display: flex;
- justify-content: center;
- align-items: center;
- }
- </style>
- </head>
- <body>
- <div class="pattern">
- <div class="test">
- <h1>Hello</h1>
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Temporibus rem, quidem ex odit ducimus explicabo earum reprehenderit esse, at architecto, modi unde. Accusantium iure in atque voluptatum officiis dolorum repellendus!</p>
- </div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement