Advertisement
Guest User

Untitled

a guest
Apr 17th, 2014
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.73 KB | None | 0 0
  1. <body>
  2. <div class="vwrapper">
  3. <div id="row1">
  4. this is the header
  5. </div>
  6. <div id="row2">
  7. this is the second line
  8. </div>
  9. <div id="row3">
  10. <div id="col1">
  11. col1
  12. </div>
  13. <div id="col2">
  14. col2
  15. </div>
  16. <div id="col3">
  17. col3
  18. </div>
  19. </div>
  20. </div>
  21. </body>
  22.  
  23. .vwrapper {
  24. display: flex;
  25. flex-direction: column;
  26.  
  27. flex-wrap: nowrap;
  28. justify-content: flex-start;
  29. align-items: stretch;
  30. align-content: stretch;
  31.  
  32. //height: 1000px;
  33.  
  34. #row1 {
  35. background-color: red;
  36.  
  37. }
  38.  
  39. #row2 {
  40. background-color: blue;
  41.  
  42. }
  43.  
  44. #row3 {
  45. background-color: green;
  46. flex 1 1 auto;
  47.  
  48. display: flex;
  49.  
  50. #col1 {
  51. background-color: yellow;
  52. flex 0 0 240px;
  53. }
  54.  
  55. #col2 {
  56. background-color: orange;
  57. flex 1 1;
  58. }
  59.  
  60. #col3 {
  61. background-color: purple;
  62. flex 0 0 240px;
  63. }
  64. }
  65. }
  66.  
  67. .wrapper, html, body {
  68. height:100%;
  69. margin:0;
  70. }
  71. .wrapper {
  72. display: flex;
  73. flex-direction: column;
  74. }
  75. #row1 {
  76. background-color: red;
  77. }
  78. #row2 {
  79. background-color: blue;
  80. }
  81. #row3 {
  82. background-color: green;
  83. flex:2;
  84. display: flex;
  85. flex-wrap:nowrap;/* it can have a reason to be here, useless for column */
  86. }
  87. #col1 {
  88. background-color: yellow;
  89. flex :0 0 240px;
  90. }
  91. #col2 {
  92. background-color: orange;
  93. flex: 1 1;
  94. }
  95. #col3 {
  96. background-color: purple;
  97. flex: 0 0 240px;
  98. }
  99.  
  100. .vwrapper {
  101. display: flex;
  102. flex-direction: column;
  103.  
  104. flex-wrap: nowrap;
  105. justify-content: flex-start;
  106. align-items: stretch;
  107. align-content: stretch;
  108.  
  109. height: 100%;
  110. }
  111.  
  112. #row3 {
  113. background-color: green;
  114. flex: 1 1 auto;
  115. display: flex;
  116. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement