Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <script src=”prefixfree.min.js” type="text/javascript"></script>
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width">
  7. <title>JS Bin</title>
  8. <style id="jsbin-css">
  9. * {
  10. margin: 0;
  11. padding: 0;
  12. box-sizing: border-box;
  13.  
  14. }
  15. body{
  16. background: #e9e9e9;
  17. }
  18.  
  19. .contenedor{
  20. width: 500px;
  21. height: 200px;
  22. background: #fff;
  23. padding: 10px;
  24. border: 10px solid #2c3e50;
  25. margin: 20px;
  26. display: flex;
  27. justify-content: center;
  28. align-items: center;
  29. /* align-content: flex-start; /// */
  30. flex-wrap: no-wrap;
  31. flex-direction: row;
  32.  
  33.  
  34. }
  35.  
  36. .elemento {
  37. color: #fff;
  38. margin: 5px;
  39. /* width: 50px; */
  40. flex-basis: 150px;
  41. height: 50px;
  42. background: #e67e22;
  43. text-align: center;
  44.  
  45. }
  46. </style>
  47. </head>
  48. <body>
  49. <div class="contenedor">
  50. <div class="elemento elemento1">1</div>
  51. <div class="elemento elemento2">2</div>
  52. <div class="elemento elemento3">3</div>
  53. <div class="elemento elemento4">4</div>
  54. </div>
  55.  
  56.  
  57. <script id="jsbin-source-css" type="text/css">* {
  58. margin: 0;
  59. padding: 0;
  60. box-sizing: border-box;
  61.  
  62. }
  63. body{
  64. background: #e9e9e9;
  65. }
  66.  
  67. .contenedor{
  68. width: 500px;
  69. height: 200px;
  70. background: #fff;
  71. padding: 10px;
  72. border: 10px solid #2c3e50;
  73. margin: 20px;
  74. display: flex;
  75. justify-content: center;
  76. align-items: center;
  77. /* align-content: flex-start; /// */
  78. flex-wrap: no-wrap;
  79. flex-direction: row;
  80.  
  81.  
  82. }
  83.  
  84. .elemento {
  85. color: #fff;
  86. margin: 5px;
  87. /* width: 50px; */
  88. flex-basis: 150px;
  89. height: 50px;
  90. background: #e67e22;
  91. text-align: center;
  92.  
  93. }
  94.  
  95. </script>
  96. </body>
  97. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement