Advertisement
Guest User

Untitled

a guest
May 21st, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.86 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Learning CSS</title>
  6. <style>
  7. .flex-first {
  8. height: 100px;
  9. border: 1px solid black;
  10. margin-bottom: 10px;
  11. display: -webkit-flex;
  12. display: flex;
  13. -webkit-flex-direction: row-reverse;
  14. flex-direction: row-reverse;
  15. -webkit-justify-content: space-between;
  16. justify-content: space-between;
  17. -webkit-align-items: center;
  18. align-items: center;
  19. }
  20.  
  21. .flex-second {
  22. height: 100px;
  23. border: 1px solid black;
  24. display: -webkit-flex;
  25. display: flex;
  26. -webkit-flex-direction: row;
  27. flex-direction: row-reverse;
  28. -webkit-justify-content: flex-end;
  29. justify-content: space-between;
  30. -webkit-align-items: flex-end;
  31. align-items: flex-end;
  32. }
  33.  
  34. .flex-first .item {
  35. border: 2px solid green;
  36. }
  37.  
  38. .flex-second .item {
  39. border: 2px solid blue;
  40. }
  41.  
  42. .item {
  43. margin-right: 5px;
  44. text-align: center;
  45. padding: 5px;
  46. width: 100px;
  47. }
  48. </style>
  49. </head>
  50. <body>
  51. <div class="flex-first">
  52. <div class="item">Div1</div>
  53. <div class="item">Div2</div>
  54. <div class="item">Div3</div>
  55. </div>
  56.  
  57. <div class="flex-second">
  58. <div class="item">Div4</div>
  59. <div class="item">Div5</div>
  60. <div class="item">Div6</div>
  61. </div>
  62. </body>
  63. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement