3カラムレイアウトから1カラムレイアウトに落とす場合どうすればよいか質問です。
html
1<html> 2<head> 3 <style type="text/css"> 4 <meta name="viewport" content="width=device-width,initial-scale=1"> 5 6 @media screen and(max-width:599px){ 7 #left,#center,#right{ 8 float: none; 9 width:100%; 10 } 11 } 12 13 14 #wrap{ 15 width: 700px; 16 height: 700px; 17 margin: auto; 18 } 19 20 #left{ 21 width: 200px; 22 float: left; 23 } 24 25 #center{ 26 width: 200px; 27 float: left; 28 } 29 30 #right{ 31 width: 200px; 32 float: left; 33 } 34 35 .box1{ 36 background: red; 37 width: 200px; 38 height: 500px; 39 } 40 41 .box2{ 42 background: yellow; 43 width: 200px; 44 height: 100px; 45 } 46 47 .box3{ 48 background: blue; 49 width: 200px; 50 height: 200px; 51 } 52 53 .box4{ 54 background: green; 55 width: 200px; 56 height: 400px; 57 } 58 59 .box5{ 60 background: black; 61 width: 200px; 62 height: 300px; 63 } 64 65 .box6{ 66 background: pink; 67 width: 200px; 68 height: 300px; 69 } 70 </style> 71 72</head> 73<body> 74 <div id="wrap"> 75 <div id="left"> 76 <div class="box1"></div> 77 <div class="box2"></div> 78 </div> 79 80 <div id="center"> 81 <div class="box3"></div> 82 <div class="box4"></div> 83 </div> 84 85 <div id="right"> 86 <div class="box5"></div> 87 <div class="box6"></div> 88 </div> 89 </div> 90</body> 91</html> 92
599px以下だと、1カラムレイアウトを組む予定にしたいのですが
こちらの場合、どこを直せばよろしでしょうか。
現状だと小さくしても、3カラムレイアウトのままです。

回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/06/19 12:23
2019/06/19 12:31
2019/06/19 12:46