Advertisement
firoze

uikit column and grid usage guide

Jun 12th, 2016
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. // uikit column and grid usage guide
  2.  
  3.  
  4.  
  5.  
  6. <div class="uk-grid" data-uk-grid-margin>
  7. <div class="uk-width-medium-1-3">
  8. <div class="uk-grid">
  9. <div class="uk-width-5-6"></div>
  10. <div class="uk-width-1-6"></div>
  11. </div>
  12. </div>
  13. </div>
  14.  
  15.  
  16.  
  17. // for uk-width-medium / small / large /
  18.  
  19. 1-1 = width 100% -------------- 1 column
  20. 1-2 = width 50% --------------- 2 column
  21. 1-3 = width 33.333% ----------- 3 column
  22. 1-4 = width 25% --------------- 4 column
  23. 1-5 = width 20% --------------- 5 column
  24. 1-6 = width 16.666% ----------- 6 column
  25.  
  26.  
  27.  
  28. // after grid
  29.  
  30. 1-6 = width 16.666% ----------- 6 column
  31. 2-6 = width 33.333% ----------- 3 column
  32. 3-6 = width 50% ----------- 2 column
  33. 4-6 = width 66.666% ----------- 4 column
  34. 5-6 = width 83.333% ----------- 5 column
  35. 6-6 = width undefine ----------- 1 column
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement