Advertisement
Guest User

Untitled

a guest
Oct 18th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. <!doctype html>
  2. <html><head>
  3. <meta charset="utf-8">
  4. <style>
  5. * {
  6. box-sizing: border-box;
  7. }
  8.  
  9. /* Create three equal columns that floats next to each other */
  10. .column {
  11. float: left;
  12. width: 33.33%;
  13. padding: 10px;
  14. height: 300px; /* Should be removed. Only for demonstration */
  15. }
  16.  
  17. /* Clear floats after the columns */
  18. .row:after {
  19. content: "";
  20. display: table;
  21. clear: both;
  22. }
  23.  
  24. /* Responsive layout - makes the three columns stack on top of each other instead of next to each other */
  25. @media screen and (max-width: 600px) {
  26. .column {
  27. width: 100%;
  28. }
  29. }
  30. </style>
  31. </head>
  32. <body>
  33. <h2>Welcome to my Website</h2>
  34. <h2>List of Subjects</h2>
  35.  
  36. <div class="row">
  37. <div class="column" style="background-color:#aaa;">
  38. <h2>Column 1</h2>
  39. <p><ul type="circle">
  40. <li>PBD01</li>
  41. <li>OOP10</li>
  42. <li>DMS410</li>
  43. <li>NETC</li>
  44. <li>SEC01</li>
  45. <li>ENG01</li>
  46. </ul></p>
  47. </div>
  48. <div class="column" style="background-color:#bbb;">
  49. <h2>Column 2</h2>
  50. <p><img src="Batman-Logo-Wallpaper-200x200.jpg" width="318" height="240" alt=""/></p>
  51. </div>
  52. <div class="column" style="background-color:#ccc;">
  53. <h2>Column 3</h2>
  54. <p><table width="250" border="5">
  55. <tbody>
  56. <tr>
  57. <td>Sample 1</td>
  58. <td>Sample 2</td>
  59. <td>Sample 3</td>
  60. </tr>
  61. <tr>
  62. <td>&nbsp;</td>
  63. <td>&nbsp;</td>
  64. <td>&nbsp;</td>
  65. </tr>
  66. <tr>
  67. <td>&nbsp;</td>
  68. <td>&nbsp;</td>
  69. <td>&nbsp;</td>
  70. </tr>
  71. </tbody></p>
  72. </div>
  73. </div>
  74.  
  75. <head>
  76.  
  77. <body>
  78.  
  79. <h1>This is my Website</h1>
  80. <h2>List of Subjects</h2>
  81.  
  82.  
  83.  
  84. </table>
  85. </body>
  86. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement