you can use a vertical field or padding with% values, it will have the width of the parent link as a link.
mainly: <div id="ratio1-1"> <div>content</div></div>and for CSS
width:80%;
}
display:inline-block;
padding-top:100%;/* equals width of its tag parent */
content:'';
}
display:inline-block;
max-width:95%;/ preserve it to fall under pseudio-element */
}
You can even vertical-align pseudo-element, and divto top, center, bottomor different value with which you want to play.
, : http://codepen.io/gc-nomade/pen/letdh
, table-cell;, pseudo 0 .