html5 - Elastic Squares (CSS HTML) -
i'm trying build 'elastic' website in css , html; want there 6 squares along width of screen; have width of squares scaling screen size, want keep squares square. there way can set height of div's same size div width (which being set off of % value).
see demo.
basically, give element same value width , padding-bottom stay square scale page.
.square { background-color: red; width:15%; height:0px; padding-bottom:15%; display: inline-block; } read more fluid squares here.
Comments
Post a Comment