Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>Class 5</title>
- <style>
- .div1{
- height: 400px;
- width: 400px;
- background-color: red;
- margin-top: 250px;
- margin-left: 200px;
- border-radius:20px;
- box-shadow: 0 0 20px 0 black;
- position: relative;
- }
- .insidediv{
- position: absolute;
- height: 100px;
- width: 100px;
- background-color: white;
- margin-top: 20px;
- margin-left: 60px;
- }
- .insidediv2{
- position: absolute;
- height: 100px;
- width: 100px;
- background-color:green;
- margin-top: 80px;
- margin-left:200px;
- }
- .in1{
- height: 50px;
- width:50px;
- background-color: blue;
- margin-top: 20px;
- margin-left: 20px;
- border-radius: 50%;
- }
- </style>
- </head>
- <body>
- <div class="div1">
- <div class="insidediv">
- <div class="in1">
- </div>
- </div>
- <div class="insidediv2">
- </div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment