Template:Ruled box/styles.css

/* Centre in page, take only the width needed */ .wst-ruledbox { margin:0 auto; display:table; border-top:1px solid black; border-bottom:1px solid black; padding:0; }

/* Unset the default p margins next to the rules. The ruled box can then set these as needed. */ .wst-ruledbox p:first-child { margin-top:0; } .wst-ruledbox p:last-child { margin-bottom:0; }