Advertisement
Guest User

iki van2

a guest
Feb 20th, 2019
76
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. <meta name="viewport" contents="width=device-width" initial-scale="1">
  6.  
  7. <title>How can we rewrite the stars? Write it. stars stars s</title>
  8. <style>
  9. body,html, p{
  10. margin: 0;
  11. border:0;
  12. padding: 0;
  13. }
  14. @media (min-width:1200px){
  15. p{
  16. color:red;
  17. background-color:blue;
  18. }
  19. .flex-container{
  20. display: flex;
  21. flex-direction: row;
  22. align-items: center;
  23. }
  24. .boxbesar{
  25. background-color: red;
  26. width: 100%;
  27. height: 100px;
  28.  
  29. }
  30. .boxkecil{
  31.  
  32. background-color: green;
  33. border:solid;
  34. border-width: 1px;
  35. height: 100px;
  36. width: 100px;
  37. }
  38.  
  39. }
  40. @media only screen and (max-width:1023px){
  41. p{
  42. color:green;
  43. background-color:black;
  44.  
  45. }
  46. .flex-container{
  47. display: flex;
  48. flex-direction: column;
  49. align-items: center;
  50. /*align-content: center;*/
  51. }
  52. .boxbesar{
  53. background-color: red;
  54. width: 100%;
  55. height: 100px;
  56. }
  57. .boxkecil{
  58.  
  59. background-color: green;
  60. border:solid;
  61. border-width: 1px;
  62. height: 100px;
  63. width: 100px;
  64. /*flex-grow: ;*/
  65. }
  66. }
  67. @media (min-width:0px) and (max-width:480px){
  68. p{
  69. color:green;
  70. background-color:black;
  71. }
  72. .flex-container{
  73. display: flex;
  74. flex-direction: column;
  75. align-items: center;
  76. /*align-content: center;*/
  77. }
  78. .boxbesar{
  79. background-color: red;
  80. width: 100%;
  81. height: 100px;
  82. display: none;
  83. }
  84. .boxkecil{
  85.  
  86. background-color: green;
  87. border:solid;
  88. border-width: 1px;
  89. height: 100px;
  90. width: 100px;
  91. /*flex-grow: ;*/
  92. }
  93.  
  94. }
  95.  
  96.  
  97. </style>
  98. </head>
  99. <body>
  100. <p>Lalalalallala</p>
  101. <div class="flex-container">
  102. <div class="boxbesar"></div>
  103.  
  104. </div>
  105. <div class="flex-container">
  106. <div class="boxkecil"></div>
  107. <div class="boxkecil"></div>
  108. <div class="boxkecil"></div>
  109. </div>
  110. </body>
  111. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement