1 | <div class="box"><br /> <div class="in in1"></div><br /> <div class="in in2"></div><br /> <div class="in in3"></div><br /> <div class="in in4"></div><br /></div><br /><br /><style><br /> .box {width: 100%;}<br /> .box .in {width: 50%; height: 200px; float: left;}<br /> .in1 {background: yellow;}<br /> .in2 {background: green;}<br /> .in3 {background: red;}<br /> .in4 {background: blue;}<br /></style> |
Czy o to chodzi? Przykład online: https://jsfiddle.net/mvnw0puq/
Daniel Dan
Dzięki za pomocny blog!2021-01-20 13:36:36