Template:Before and after/styles.css: Difference between revisions
Template page
More actions
Content deleted Content added
Tesinormed (talk | contribs) No edit summary |
Tesinormed (talk | contribs) No edit summary |
||
| Line 7: | Line 7: | ||
} |
} |
||
.template--before_and_after:nth-child(3n-2) { |
.template--before_and_after :nth-child(3n-2) { |
||
text-align: left; |
text-align: left; |
||
} |
} |
||
.template--before_and_after:nth-child(3n-1) { |
.template--before_and_after :nth-child(3n-1) { |
||
text-align: center; |
text-align: center; |
||
} |
} |
||
.template--before_and_after:nth-child(3n) { |
.template--before_and_after :nth-child(3n) { |
||
text-align: right; |
text-align: right; |
||
} |
} |
||
Revision as of 08:12, January 31, 2025
.template--before_and_after {
margin: 0 auto;
width: 80%;
display: grid;
grid-template-columns: 2fr 1fr 2fr;
gap: var(--space-sm);
}
.template--before_and_after :nth-child(3n-2) {
text-align: left;
}
.template--before_and_after :nth-child(3n-1) {
text-align: center;
}
.template--before_and_after :nth-child(3n) {
text-align: right;
}