Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.22 KB | None | 0 0
  1. <!DOCTYPE html>
  2.  
  3. <html>
  4. <head>
  5. <title>Div Layout</title>
  6. <meta charset="UTF-8">
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  8. <!--<link rel="stylesheet" type="text/css" href="div_layout.css"/> -->
  9. <style>
  10. *{box-sizing: border-box;}
  11.  
  12.  
  13. div.one{
  14. border: 1px solid black;
  15. height: 100px;
  16. width: 20%;
  17. background-color: red;
  18. float: left;
  19. }
  20.  
  21. div.two{
  22. border: 1px solid black;
  23. height: 100px;
  24. width: 80%;
  25. background-color: green;
  26. float: left;
  27. }
  28.  
  29. div.three{
  30. border: 1px solid black;
  31. height: 80px;
  32. width: 100%;
  33. background-color: powderblue;
  34. float: left;
  35. }
  36.  
  37. div.four{
  38. border: 1px solid black;
  39. height: 300px;
  40. width: 20%;
  41. background-color: red;
  42. float: left;
  43. }
  44.  
  45. div.five{
  46. border: 1px solid black;
  47. height: 300px;
  48. width: 60%;
  49. background-color: green;
  50. float: left;
  51. }
  52.  
  53.  
  54. div.seven{
  55. border: 1px solid black;
  56. height: 60px;
  57. width: 100%;
  58. background-color: powderblue;
  59. float: left;
  60. }
  61.  
  62. </style>
  63. </head>
  64. <body>
  65. <div class="one">
  66. <img src="image/img_1.jpg" alt="logo" height="100%" width="100%"/>
  67. </div>
  68. <div class="two">
  69.  
  70. </div>
  71.  
  72. <div class="three"><h1 align="center">Site Using Div</h1></div>
  73.  
  74. <div class="four"> </div>
  75.  
  76. <div class="five"> </div>
  77.  
  78. <div class="four"> </div>
  79.  
  80. <div class="seven"> </div>
  81.  
  82.  
  83. </body>
  84. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement