Advertisement
UrsidaeAngeni

Example

May 12th, 2019
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.67 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <title>Page Title</title>
  5. <meta charset="UTF-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <style>
  8. * {
  9. box-sizing: border-box;
  10. }
  11.  
  12. /* Style the body */
  13. body {
  14. font-family: Arial, Helvetica, sans-serif;
  15. margin: 0;
  16. }
  17.  
  18. /* Header/logo Title */
  19. .header {
  20. padding: 80px;
  21. text-align: center;
  22. background: #1abc9c;
  23. color: white;
  24. }
  25.  
  26. /* Increase the font size of the heading */
  27. .header h1 {
  28. font-size: 40px;
  29. }
  30.  
  31. /* Style the top navigation bar */
  32. .navbar {
  33. overflow: hidden;
  34. background-color: #333;
  35. }
  36.  
  37. /* Style the navigation bar links */
  38. .navbar a {
  39. float: left;
  40. display: block;
  41. color: white;
  42. text-align: center;
  43. padding: 14px 20px;
  44. text-decoration: none;
  45. }
  46.  
  47. /* Right-aligned link */
  48. .navbar a.right {
  49. float: right;
  50. }
  51.  
  52. /* Change color on hover */
  53. .navbar a:hover {
  54. background-color: #ddd;
  55. color: black;
  56. }
  57.  
  58. /* Column container */
  59. .row {
  60. display: -ms-flexbox; /* IE10 */
  61. display: flex;
  62. -ms-flex-wrap: wrap; /* IE10 */
  63. flex-wrap: wrap;
  64. }
  65.  
  66. /* Create two unequal columns that sits next to each other */
  67. /* Sidebar/left column */
  68. .side {
  69. -ms-flex: 30%; /* IE10 */
  70. flex: 30%;
  71. background-color: #f1f1f1;
  72. padding: 20px;
  73. }
  74.  
  75. /* Main column */
  76. .main {
  77. -ms-flex: 70%; /* IE10 */
  78. flex: 70%;
  79. background-color: white;
  80. padding: 20px;
  81. }
  82.  
  83. /* Fake image, just for this example */
  84. .fakeimg {
  85. background-color: #aaa;
  86. width: 100%;
  87. padding: 20px;
  88. }
  89.  
  90. /* Footer */
  91. .footer {
  92. padding: 20px;
  93. text-align: center;
  94. background: #ddd;
  95. }
  96.  
  97. /* Responsive layout - when the screen is less than 700px wide, make the two columns stack on top of each other instead of next to each other */
  98. @media screen and (max-width: 700px) {
  99. .row {
  100. flex-direction: column;
  101. }
  102. }
  103.  
  104. /* Responsive layout - when the screen is less than 400px wide, make the navigation links stack on top of each other instead of next to each other */
  105. @media screen and (max-width: 400px) {
  106. .navbar a {
  107. float: none;
  108. width: 100%;
  109. }
  110. }
  111. </style>
  112. </head>
  113. <body>
  114.  
  115. <div class="header">
  116. <h1>My Website</h1>
  117. <p>A website created by me.</p>
  118. </div>
  119.  
  120. <div class="navbar">
  121. <a href="#">Link</a>
  122. <a href="#">Link</a>
  123. <a href="#">Link</a>
  124. <a href="#" class="right">Link</a>
  125. </div>
  126.  
  127. <div class="row">
  128. <div class="side">
  129. <h2>About Me</h2>
  130. <h5>Photo of me:</h5>
  131. <div class="fakeimg" style="height:200px;">Image</div>
  132. <p>Some text about me in culpa qui officia deserunt mollit anim..</p>
  133. <h3>More Text</h3>
  134. <p>Lorem ipsum dolor sit ame.</p>
  135. <div class="fakeimg" style="height:60px;">Image</div><br>
  136. <div class="fakeimg" style="height:60px;">Image</div><br>
  137. <div class="fakeimg" style="height:60px;">Image</div>
  138. </div>
  139. <div class="main">
  140. <h2>TITLE HEADING</h2>
  141. <h5>Title description, Dec 7, 2017</h5>
  142. <div class="fakeimg" style="height:200px;">Image</div>
  143. <p>Some text..</p>
  144. <p>Sunt in culpa qui officia deserunt mollit anim id est laborum consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco.</p>
  145. <br>
  146. <h2>TITLE HEADING</h2>
  147. <h5>Title description, Sep 2, 2017</h5>
  148. <div class="fakeimg" style="height:200px;">Image</div>
  149. <p>Some text..</p>
  150. <p>Sunt in culpa qui officia deserunt mollit anim id est laborum consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco.</p>
  151. </div>
  152. </div>
  153.  
  154. <div class="footer">
  155. <h2>Footer</h2>
  156. </div>
  157.  
  158. </body>
  159. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement