Jump to content
Wikipedia The Free Encyclopedia

Help:Useful styles

From Wikipedia, the free encyclopedia
This help page needs to be updated. The reason given is: Thought in June 2007 to be outdated, and all these years later this page has received virtually no updated content. Please help update this help page to reflect recent events or newly available information. Relevant discussion may be found on the talk page.
This help page is a how-to guide.
It explains concepts or processes used by the Wikipedia community. It is not one of Wikipedia's policies or guidelines, and may reflect varying levels of consensus.

This page documents various CSS elements that are useful to know when working in the article and template namespaces. For information about how to use them, see:

Classes

[edit ]

Specific styles

[edit ]
  • border-collapse:collapse This style will eliminate 3-d style borders created by the border attribute and collapse them in 1px wide borders. This property will override cellspacing! To define similar whitespace, use the border-spacing property (although it is not possible to have both border-spacing and border-collapse for the same table).

Moving stuff

[edit ]
  • float:right and clear:right These styles are used to move a table to the right-hand side of the screen. Float right is equivalent to align="right" The clear code property makes it impossible for the movement to be blocked by another box or picture: the template will automatically move under it.

Margins and sizes

[edit ]
  • margin:0 0 0.5em 1em; This style prevents text from running straight to the template by saving blank space. It should be used on boxes which are floated right (using float: right;).
    • margin:0 1em 0.5em 0; This performs the same function as the style directly above, but should be used for boxes which are floated left (using float: left;).

See also

[edit ]
Get personal technical help at the Teahouse, help desk, village pump (technical), talk pages or IRC.
General
technical help
Special
page
-related
Wikitext
Links and diffs
Media files: images,
videos and sounds
Other graphics
Templates and
Lua modules
Data structure
HTML and CSS
Customisation
and tools
Automated editing

AltStyle によって変換されたページ (->オリジナル) /