Template:Center/styles.css: Difference between revisions
Jump to navigation
Jump to search
enws>ShakespeareFan00 No edit summary |
m (1 revision imported) |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 12: | Line 12: | ||
*/ | */ | ||
.wst-center.wst-center-nomargin > p { | .wst-center.wst-center-nomargin > p { | ||
margin-top: 0; | |||
margin-bottom: 0; | margin-bottom: 0; | ||
} | } | ||
Latest revision as of 13:39, 28 June 2025
/* Basic alignment */
.wst-center {
text-align: center;
display:table; /* make this behave like an old style CENTER tag */
margin:0 auto 0 auto;
}
/*
* p-wrapping gives us a hard 7px bottom margin that is undesireable when
* trying to align another element just below us (like a horizontal rule).
* This is a workaround for that by simply forcing the margin to zero.
*/
.wst-center.wst-center-nomargin > p {
margin-top: 0;
margin-bottom: 0;
}