ziobudda

posizione su immagine

Sep 8th, 2022
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.39 KB | Help | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <title>Title</title>
  6.     <style>
  7.         .gentitore {
  8.             /*background-image: url("https://picsum.photos/1000/1000");*/
  9.             min-width: 200px;
  10.             min-height: 500px;
  11.             border: 1px red solid;
  12.             position: relative
  13.         }
  14.         .img {
  15.             background-image: url("https://picsum.photos/1000/1000");
  16.             position: absolute;
  17.             top: 0;
  18.             left: 0;
  19.             width: 100%;
  20.             height: 100%;
  21.             background-size: cover;
  22.         }
  23.         .figlio {
  24.             width: 20px;
  25.             heigh: 20px;
  26.             background-color: green;
  27.             border-radiu: 20px;
  28.             position: absolute;
  29.         }
  30.  
  31.         .figlio1 {
  32.             left: 10%;
  33.             top: 20%;
  34.         }
  35.  
  36.         .figlio2 {
  37.             left: 30%;
  38.             top: 80%;
  39.         }
  40.  
  41.  
  42.     </style>
  43.     <script><script
  44.        src="https://code.jquery.com/jquery-3.6.1.min.js"
  45.        integrity="sha256-o88AwQnZB+VDvE9tvIXrMQaPlFFSUTR+nldQm1LuPXQ="
  46.        crossorigin="anonymous"></script>
  47.  
  48.     </script>
  49. </head>
  50. <body>
  51. <div class="gentitore" >
  52.     <div class="img"><img src2="https://picsum.photos/1000/1000"></div>
  53.     <div class="figlio figlio1">IO</div>
  54.     <div class="figlio figlio2">LUI</div>
  55.  
  56. </div>
  57. </body>
  58. </html>
  59.  
Add Comment
Please, Sign In to add comment