Advertisement
makispaiktis

Codecademy - Align Content (Example - HTML)

Dec 5th, 2019 (edited)
461
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.21 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3.  
  4. <head>
  5.   <title>Align Content</title>
  6.   <link href="style.css" type="text/css" rel="stylesheet" />
  7.   <link href="https://fonts.googleapis.com/css?family=Roboto+Mono" rel="stylesheet">
  8. </head>
  9.  
  10. <body>
  11.   <h1>Flex Start</h1>
  12.   <div class="container" id="flexstart">
  13.     <div class="left"></div>
  14.     <div class="center"></div>
  15.     <div class="right"></div>
  16.   </div>
  17.   <h1>Flex End</h1>
  18.   <div class="container" id="flexend">
  19.     <div class="left"></div>
  20.     <div class="center"></div>
  21.     <div class="right"></div>
  22.   </div>
  23.   <h1>Center</h1>
  24.   <div class="container" id="center">
  25.     <div class="left"></div>
  26.     <div class="center"></div>
  27.     <div class="right"></div>
  28.   </div>
  29.   <h1>Space Between</h1>
  30.   <div class="container" id="between">
  31.     <div class="left"></div>
  32.     <div class="center"></div>
  33.     <div class="right"></div>
  34.   </div>
  35.   <h1>Space Around</h1>
  36.   <div class="container" id="around">
  37.     <div class="left"></div>
  38.     <div class="center"></div>
  39.     <div class="right"></div>
  40.   </div>
  41.   <h1>Stretch</h1>
  42.   <div class="container" id="stretch">
  43.     <div class="left"></div>
  44.     <div class="center"></div>
  45.     <div class="right"></div>
  46.   </div>
  47. </body>
  48.  
  49. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement