Template:Helpbox: Difference between revisions

padding-left/right for title/headingstyle in case title or a heading is template's widest element
w:en>Sardanaphalus
m (→‎top: headingstyle (padding-bottom to match padding-top), reduced code's whitespace, removed semicolon in case duplicated (style))
w:en>Sardanaphalus
(padding-left/right for title/headingstyle in case title or a heading is template's widest element)
Line 5: Line 5:
| style = width:auto;background:#f5faff;font-size:90%;line-height:1.6em; {{#if:{{{1|}}} |{{{1}}} }}
| style = width:auto;background:#f5faff;font-size:90%;line-height:1.6em; {{#if:{{{1|}}} |{{{1}}} }}
| basestyle = background:#cee0f2;
| basestyle = background:#cee0f2;
| titlestyle = font-size:130%; display:block;margin-bottom:6px; {{{titlestyle|}}}
| titlestyle = font-size:130%;padding-left:0.2em;padding-right:0.2em; <!--(gap before first heading/content:)-->display:block;margin-bottom:6px; {{{titlestyle|}}}
| title = {{{title|{{{name|}}}}}}
| title = {{{title|{{{name|}}}}}}
| headingstyle = padding-top:0.15em;padding-bottom:0.15em;{{{headingstyle|}}}
| headingstyle = padding:0.1em 0.25em 0.15em;{{{headingstyle|}}}
| contentstyle = padding-top:0.15em;
| contentstyle = padding-top:0.15em;


Anonymous user