Difference between revisions of "User:Annalucia.zablah"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
.square { | .square { | ||
− | height: | + | width: 100%; |
− | + | height: 0; | |
− | background-color: # | + | padding-top: 100%; |
+ | background-color: #ccc; | ||
+ | position: relative; | ||
} | } | ||
− | + | .content { | |
− | + | position: absolute; | |
− | + | top: 0; | |
− | + | left: 0; | |
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
− |
Revision as of 14:54, 22 February 2023
.square {
width: 100%; height: 0; padding-top: 100%; background-color: #ccc; position: relative;
} .content {
position: absolute; top: 0; left: 0;
}