پرش به محتوا

الگو:Div col/styles.css

از ویکی‌نبشته
.wst-div-col {
	/* a reasonable default to prevent extremely narrow widths. can be overriden
     * as needed */
	column-width: 12em;
	
	/* this is the padding that we remove from the first paragraph */
	margin-top: 0.5em;
}

.wst-div-col > p:first-child,
.wst-div-col > ul:first-child,
.wst-div-col > ol:first-child,
.wst-div-col > dl:first-child {
	/* prevent the first paragraph "pushing down" (because the paras in the
	 * second column will not). we transfer the default 0.5em margin to the
	 * top of the whole div */
	margin-top: 0;
}

/* default rule is a simple black line */
/* override with index CSS as needed */
.wst-div-col-ruled {
	column-rule: 1px solid black;
}

/* try not to break list items across a page when possible */
.wst-div-col li {
	break-inside: avoid;
}

/* avoid gap at top of lists */
.wst-block-center > dl:nth-child(1),
.wst-div-col ul:first-child {
	margin-top: 0;
}