aytdev

Class 5

Sep 27th, 2020
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.86 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.    
  5.     <title>Class 5</title>
  6.     <style>
  7.         .div1{
  8.     height: 400px;
  9.     width: 400px;
  10.     background-color: red;
  11.     margin-top: 250px;
  12.     margin-left: 200px;
  13.     border-radius:20px;
  14.     box-shadow: 0 0 20px 0 black;
  15.     position: relative;
  16.    
  17. }
  18. .insidediv{
  19.     position: absolute;
  20.     height: 100px;
  21.     width: 100px;
  22.     background-color: white;
  23.     margin-top: 20px;
  24.     margin-left: 60px;
  25. }
  26. .insidediv2{
  27.     position: absolute;
  28.     height: 100px;
  29.     width: 100px;
  30.     background-color:green;
  31.     margin-top: 80px;
  32.     margin-left:200px;
  33. }
  34. .in1{
  35.     height: 50px;
  36.     width:50px;
  37.     background-color: blue;
  38.     margin-top: 20px;
  39.     margin-left: 20px;
  40.     border-radius: 50%;
  41. }
  42.        
  43.     </style>
  44. </head>
  45. <body>
  46.     <div class="div1">
  47.         <div class="insidediv">
  48.             <div class="in1">
  49.                
  50.             </div>
  51.            
  52.         </div>
  53.         <div class="insidediv2">
  54.            
  55.         </div>
  56.        
  57.     </div>
  58.  
  59. </body>
  60. </html>
Advertisement
Add Comment
Please, Sign In to add comment