css same width, height
#test{
width: 20%;
}
#test:before{
content:'';
padding:50% 0; /* vertical value as 100% equals width */
display:inline-block;
}
'WebDev' 카테고리의 다른 글
jQuery direct text (0) | 2016.03.19 |
---|---|
AngularJS (0) | 2016.03.11 |
javascript object copy (0) | 2016.03.08 |
javascript string formatter (0) | 2016.03.04 |
s3 sigv4 (0) | 2016.03.03 |