Just title text
{{Userboxtop|Text of the title}}
{{Thành viên:Chó Vàng Hài Hước/Userbox/You are (not) alone}}{{Thành viên:Chó Vàng Hài Hước/Userbox/You can (not) advance}}
{{Userboxbottom}}
So sánh hai bên
{{Userboxtop}}{{Userboxtop/sandbox}}
Colors
{{Userboxtop|Colors|bordercolor=green|backgroundcolor=cyan|textcolor=maroon}}
{{Thành viên:Chó Vàng Hài Hước/Userbox/You are (not) alone}}{{Thành viên:Chó Vàng Hài Hước/Userbox/You can (not) advance}}
{{Userboxbottom}}
So sánh hai bên
{{Userboxtop}}{{Userboxtop/sandbox}}
Left aligned
{{Userboxtop|Should be left aligned|align=left}}
{{Thành viên:Chó Vàng Hài Hước/Userbox/You are (not) alone}}{{Thành viên:Chó Vàng Hài Hước/Userbox/You can (not) advance}}
{{Userboxbottom}}

{{Userboxtop}}



{{Userboxtop/sandbox}}


Center aligned
{{Userboxtop|Should be center aligned|align=center}}
{{Thành viên:Chó Vàng Hài Hước/Userbox/You are (not) alone}}{{Thành viên:Chó Vàng Hài Hước/Userbox/You can (not) advance}}
{{Userboxbottom}}

{{Userboxtop}}



{{Userboxtop/sandbox}}


Extra CSS
{{Userboxtop|With extra CSS|extra-css=border-style:dashed; border-width: 5px; text-decoration: overline wavy;}}
{{Thành viên:Chó Vàng Hài Hước/Userbox/You are (not) alone}}{{Thành viên:Chó Vàng Hài Hước/Userbox/You can (not) advance}}
{{Userboxbottom}}
So sánh hai bên
{{Userboxtop}}{{Userboxtop/sandbox}}
|toptextstyle=
{{Userboxtop|toptext=Foobar Xyzzy|toptextstyle=font-family: Times, serif; font-size: 200%;}}
{{Thành viên:Chó Vàng Hài Hước/Userbox/You are (not) alone}}{{Thành viên:Chó Vàng Hài Hước/Userbox/You can (not) advance}}
{{Userboxbottom}}
So sánh hai bên
{{Userboxtop}}{{Userboxtop/sandbox}}
Extra CSS to try to align the box in the center of the page (doesn't work because of margin-left handling)
{{Userboxtop|With extra CSS|extra-css=margin:auto;|float=none}}
{{Thành viên:Chó Vàng Hài Hước/Userbox/You are (not) alone}}{{Thành viên:Chó Vàng Hài Hước/Userbox/You can (not) advance}}
{{Userboxbottom}}
So sánh hai bên
{{Userboxtop}}{{Userboxtop/sandbox}}

Code to center a table of userboxes

sửa

The template's handling of margin-left appears to prevent centering. There may be a workaround aside from this manual code.

Sandbox code to center a table of userboxes

sửa

Sandbox no-align (default to right)

Sandbox align=right

Sandbox align=center (to output invalid float=center, which is ignored in favor of margin:auto)

Sandbox align=left

Sandbox align=none (to output the valid float=none)

Sandbox float=none

Sandbox align=middle