Πρότυπο: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 { /* 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 o... |
Χωρίς σύνοψη επεξεργασίας |
||
| Γραμμή 2: | Γραμμή 2: | ||
/* a reasonable default to prevent extremely narrow widths. can be overriden |
/* a reasonable default to prevent extremely narrow widths. can be overriden |
||
* as needed */ |
* as needed */ |
||
column-width: |
column-width: 30em; |
||
/* this is the padding that we remove from the first paragraph */ |
/* this is the padding that we remove from the first paragraph */ |
||
Τελευταία αναθεώρηση της 12:09, 23 Οκτωβρίου 2021
.wst-div-col {
/* a reasonable default to prevent extremely narrow widths. can be overriden
* as needed */
column-width: 30em;
/* 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 {
/* 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;
}