Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Help:Useful styles

From Wikipedia, the free encyclopedia
This help page needs to beupdated. The reason given is:Thought inJune 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 onthe talk page.
This help page is ahow-to guide.
It explains concepts or processes used by the Wikipedia community. It is not one ofWikipedia's policies or guidelines, and may reflect varying levels ofconsensus.

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]
Main page:Wikipedia:Catalogue of CSS classes

Specific styles

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

Moving stuff

[edit]
  • float:right andclear:right These styles are used to move a table to the right-hand side of the screen. Float right is equivalent toalign="right" Theclear 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 (usingfloat: 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 (usingfloat: left;).

See also

[edit]
General
technical help
Special
page
-related
Wikitext
Links anddiffs
Media files: images,
videos and sounds
Other graphics
Templates and
Lua modules
Data structure
HTML andCSS
Customisation
and tools
Automated editing
Retrieved from "https://en.wikipedia.org/w/index.php?title=Help:Useful_styles&oldid=1135152864"
Categories:

[8]ページ先頭

©2009-2026 Movatter.jp