Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
You must create an account or log in to edit.

Template:Before and after/styles.css: Difference between revisions

Template page
Content deleted Content added
No edit summary
Undo revision 161642 by Tesinormed (talk)
Line 2: Line 2:
margin: 0 auto;
margin: 0 auto;
width: 90%;
width: 90%;
display: flex;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
flex-direction: row;
gap: var(--space-xs);
flex-wrap: wrap;
gap: var(--space-xs);
}
}



Revision as of 06:40, May 26, 2025

.template--before_and_after {
	margin: 0 auto;
	width: 90%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: var(--space-xs);
}

.template--before_and_after > * {
	vertical-align: top;
}

.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;
}

.template--before_and_after ul {
	margin: 0;
	list-style: none;
}