Advertisement
krot

flex

Aug 14th, 2017
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.01 KB | None | 0 0
  1. .flex-container {
  2.   padding: 0;
  3.   margin: 0;
  4.   list-style: none;
  5.  
  6.   -ms-box-orient: horizontal;
  7.   display: -webkit-box;
  8.   display: -moz-box;
  9.   display: -ms-flexbox;
  10.   display: -moz-flex;
  11.   display: -webkit-flex;
  12.   display: flex;
  13.   float: left;
  14. }
  15.  
  16. .flex-start {
  17.   -webkit-align-items: flex-start;
  18.   align-items: flex-start;
  19. }
  20.  
  21. .flex-end {
  22.   -webkit-align-items: flex-end;
  23.   align-items: flex-end;
  24. }
  25. .flex-end li {
  26.   background: gold;
  27. }
  28.  
  29. .center {
  30.   -webkit-align-items: center;
  31.   align-items: center;
  32. }  
  33. .center li {
  34.   background: deepskyblue;
  35. }
  36.  
  37. .baseline {
  38.   -webkit-align-items: baseline;
  39.   align-items: baseline;
  40. }
  41. .baseline li {
  42.   background: lightgreen;
  43. }
  44.  
  45. .stretch {
  46.   -webkit-align-items: stretch;
  47.   align-items: stretch;
  48. }  
  49. .stretch li {
  50.   background: hotpink;
  51. }
  52.  
  53. .flex-item {
  54.   background: tomato;
  55.   padding: 5px;
  56.   width: 50px;
  57.   margin: 5px;
  58.  
  59.   line-height: 50px;
  60.   color: white;
  61.   font-weight: bold;
  62.   font-size: 2em;
  63.   text-align: center;
  64. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement