.square {

 width: 100%;
 height: 0;
 padding-top: 100%;
 background-color: #ccc;
 position: relative;

} .content {

 position: absolute;
 top: 0;
 left: 0;

}