Difference between revisions of "Template:Userbox"

From blackwiki
Jump to navigation Jump to search
blackwiki>Waldyrious
(box-sizing tweak needs a little testing, after all. undoing for now)
blackwiki>Waldyrious
(userbox table was actually 240px wide due to borders, and div was explicitly set to 238px with box-sizing:border-box. this should fix it. (btw shouldn't these styles be defined in common.css rather than inline?))
Line 1: Line 1:
<div style="float:{{{float|left}}}; border:{{{border-width|{{{border-s|1}}}}}}px solid {{{border-color|{{{1|{{{border-c|{{{id-c|#999}}}}}}}}}}}}; margin:1px; width:238px;" class="wikipediauserbox {{{bodyclass|}}}">
+
<div style="float:{{{float|left}}}; border:{{{border-width|{{{border-s|1}}}}}}px solid {{{border-color|{{{1|{{{border-c|{{{id-c|#999}}}}}}}}}}}}; margin:1px; width:240px; {{css3|box-sizing: border-box}}" class="wikipediauserbox {{{bodyclass|}}}">
{| cellspacing="0" style=" width:238px; margin-bottom:0; background:{{{info-background|{{{2|{{{info-c|#EEE}}}}}}}}}"
+
{| cellspacing="0" style=" width:100%; margin-bottom:0; background:{{{info-background|{{{2|{{{info-c|#EEE}}}}}}}}}"
 
{{#if:{{{logo|{{{3|{{{id|id}}}}}}}}}|
 
{{#if:{{{logo|{{{3|{{{id|id}}}}}}}}}|
 
! style="width:{{{logo-width|{{{id-w|45}}}}}}px; height:{{{logo-height|{{{id-h|45}}}}}}px; background:{{{logo-background|{{{1|{{{id-c|#DDD}}}}}}}}}; text-align:{{{id-a|center}}}; font-size:{{{logo-size|{{{5|{{{id-s|14}}}}}}}}}pt; color:{{{logo-color|{{{id-fc|black}}}}}}; padding:{{{logo-padding|{{{id-p|0 1px 0 0}}}}}}; line-height:{{{logo-line-height|{{{id-lh|1.25em}}}}}}; vertical-align: middle; {{{logo-other-param|{{{id-op|}}}}}}" {{#if:{{{id-class|}}}|class="{{{id-class}}}"}} {{!}} {{{logo|{{{3|{{{id|id}}}}}}}}}
 
! style="width:{{{logo-width|{{{id-w|45}}}}}}px; height:{{{logo-height|{{{id-h|45}}}}}}px; background:{{{logo-background|{{{1|{{{id-c|#DDD}}}}}}}}}; text-align:{{{id-a|center}}}; font-size:{{{logo-size|{{{5|{{{id-s|14}}}}}}}}}pt; color:{{{logo-color|{{{id-fc|black}}}}}}; padding:{{{logo-padding|{{{id-p|0 1px 0 0}}}}}}; line-height:{{{logo-line-height|{{{id-lh|1.25em}}}}}}; vertical-align: middle; {{{logo-other-param|{{{id-op|}}}}}}" {{#if:{{{id-class|}}}|class="{{{id-class}}}"}} {{!}} {{{logo|{{{3|{{{id|id}}}}}}}}}

Revision as of 14:25, 22 January 2012

id info
50px Template documentation[create]