Last active
March 13, 2021 19:40
-
-
Save Zodiac1978/d3a857b0520db51e84c0939cab853ebb to your computer and use it in GitHub Desktop.
Responsiveness Spalten-Block anpassen - CSS-Lösung für das hier beschriebene Problem: https://die-netzialisten.de/responsiveness-spalten-block-anpassen/
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
/* | |
Sources: | |
https://stackoverflow.com/questions/8720931/can-css-detect-the-number-of-children-an-element-has | |
https://lea.verou.me/2011/01/styling-children-based-on-their-number-with-css3/ | |
*/ | |
@media (min-width:600px) and (max-width:781px) { | |
.wp-block-column:first-child:nth-last-child(3) { | |
flex-basis: 100% !important; | |
} | |
.wp-block-column:first-child:nth-last-child(3) ~ .wp-block-column { | |
margin-left: 0 !important; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment