-
-
Save tobiasfabian/9e1637820872e901aab4056ad50e5463 to your computer and use it in GitHub Desktop.
Prevent Content-Shifting in Contao with automated proportion-calc (CSS)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
figure > span:first-child{ | |
display: block; | |
} | |
figure > span:first-child + img{ | |
display: block; | |
transform: translateY(-100%); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment