Advertisement
mbazs

CSS Height WTF?

Jun 29th, 2018
449
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. HTML:
  2.  
  3. <!DOCTYPE <!DOCTYPE html>
  4. <html lang="en">
  5. <head>
  6. <meta charset="utf-8" />
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  8. <title>uHost</title>
  9. <meta name="viewport" content="width=device-width, initial-scale=1">
  10. <link rel="stylesheet" type="text/css" media="screen" href="main.css" />
  11. <link href="https://fonts.googleapis.com/css?family=Cinzel" rel="stylesheet">
  12. <link href="https://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet">
  13. </head>
  14. <body>
  15. <main>
  16. <section id="product-overview">
  17. <h1>Get the freedom you deserve.</h1>
  18. </section>
  19. <section id="plans">
  20. <h1 class="section-title">Choose Your Plan</h1>
  21. <p>Make sure you get the most for your money!</p>
  22. </section>
  23. </main>
  24. </body>
  25. </html>
  26.  
  27.  
  28. CSS:
  29.  
  30. body {
  31. font-family: 'Montserrat', sans-serif;
  32. /* margin: 0; */
  33. }
  34.  
  35. /* main {
  36. height: 500px;
  37. } */
  38.  
  39. #product-overview {
  40. background: #ff1b68;
  41. width: 700px;
  42. height: 100%;
  43. }
  44.  
  45. .section-title {
  46. color: #2ddf5c;
  47. }
  48.  
  49. #product-overview h1 {
  50. color: white;
  51. font-family: 'Cinzel', serif;
  52. }
  53.  
  54. /* h1 {
  55. font-family: sans-serif;
  56. } */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement