html - What if my screen resolution is less than layout resolution? -
i try make area this:
but problem resolution of screen less layout. best way shape in layout? have use custom % or responsive table, think?
use flexbox.
you divide layout 2 groups, each sqare of 4x4. on vertical screen, second group wrap , placed below. on horizontal screen, groups placed next each other (same in picture).
<div class="wrap"> <div class="group"> <div class="item pic"> <div class="item text"> <div class="item pic"> <div class="item text"> </div> <div class="group"> <div class="item pic"> <div class="item text"> <div class="item pic"> <div class="item text"> </div> </div>
then, on small screens make .group
element 100vw
, on larger screens 50vw
.
Comments
Post a Comment