Advertisement
skylight_animation

Class Implementation Example CSS | Attribute Class Vs. Id pada HTML

Jan 26th, 2025 (edited)
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.54 KB | Source Code | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6.     <title>Class</title>
  7.     <style type="text/css">
  8.  
  9.         .box-red{
  10.             background: red;
  11.             width: 50px;
  12.             height: 500px;
  13.             margin: 10px;
  14.         }
  15.         .box-blue{
  16.             background: blue;
  17.             width: 20px;
  18.             height: 20px;
  19.             margin: 10px;
  20.         }
  21.     </style>
  22. </head>
  23. <body>
  24.     <div class="box-red"></div>
  25.     <div class="box-red"></div>
  26.     <div class="box-red"></div>
  27.     <div class="box-blue"></div>
  28. </body>
  29. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement