Advertisement
trentjs

Flex Row Content - adding divs holds row

Jan 7th, 2021
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.80 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.  
  5. <style>
  6.  
  7.     body{
  8.         background-color: #FFFFFF;
  9.         font-family: Arial, Helvetica, sans-serif;
  10.     }
  11.  
  12. .flex-row {
  13.   display: flex;
  14.   flex-direction: row;
  15.   background-color: #dedede;
  16. }
  17.  
  18. .flex-row > div {
  19.   background-color: #ffffff;
  20.   width: 100%;
  21.   margin: 10px;
  22.   /*text-align: center;*/
  23.   /*line-height: 100px;*/
  24.   /*font-size: 30px;*/
  25. }
  26.  
  27. </style>
  28.  
  29. </head>
  30. <body>
  31.  
  32. <h2>HTML Content</h2>
  33.  
  34. <div class="flex-row">
  35.     <div>1</div>
  36.     <div>2</div>
  37.     <div>Because a viewer can be distracted by meaningful content, greeking unimportant text forces the viewer to focus on layout and design</div>  
  38.     <div>4</div>  
  39.   </div>
  40.  
  41. <script>
  42.     //JAVASCRIPT START
  43.     console.log("Javascript Start");
  44. </script>
  45.  
  46. </body>
  47. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement