<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.tachyony.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Help%3AUseful_styles</id>
	<title>Help:Useful styles - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.tachyony.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Help%3AUseful_styles"/>
	<link rel="alternate" type="text/html" href="https://wiki.tachyony.co.uk/w/index.php?title=Help:Useful_styles&amp;action=history"/>
	<updated>2026-05-15T10:21:34Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.5</generator>
	<entry>
		<id>https://wiki.tachyony.co.uk/w/index.php?title=Help:Useful_styles&amp;diff=2452&amp;oldid=prev</id>
		<title>Tachyony: Imported page</title>
		<link rel="alternate" type="text/html" href="https://wiki.tachyony.co.uk/w/index.php?title=Help:Useful_styles&amp;diff=2452&amp;oldid=prev"/>
		<updated>2021-12-06T16:05:01Z</updated>

		<summary type="html">&lt;p&gt;Imported page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{update}}&lt;br /&gt;
{{Wikipedia how to}}&lt;br /&gt;
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:&lt;br /&gt;
__NOTOC__&lt;br /&gt;
== Classes ==&lt;br /&gt;
{{main|Wikipedia:Catalogue of CSS classes}}&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;wikitable&amp;#039;&amp;#039;&amp;#039; This class represents Wikipedia&amp;#039;s favored style for data tables.&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;toccolours&amp;#039;&amp;#039;&amp;#039; This class gives the template borders and colors similar to that of the Table of Contents of a page. &amp;#039;&amp;#039;&amp;#039;Do not use &amp;lt;code&amp;gt;id=&amp;quot;toc&amp;quot;&amp;lt;/code&amp;gt; instead of this,&amp;#039;&amp;#039;&amp;#039; as it risks breaking some scripts and causing other problems (every &amp;lt;code&amp;gt;id=&amp;lt;/code&amp;gt; value on a page must be unique). &amp;lt;code&amp;gt;toccolours&amp;lt;/code&amp;gt; is not used much anymore, but used to be used for footer templates etc.&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;navbox&amp;#039;&amp;#039;&amp;#039; This class is used on most footer templates (e.g. {{tl|Regions of the world}}). See also [[Template:Navbox]].&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;infobox&amp;#039;&amp;#039;&amp;#039; This class is used for infoboxes (e.g. {{tl|Infobox Settlement}}).&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;*mbox-*&amp;#039;&amp;#039;&amp;#039;: Message boxes to be used on…&lt;br /&gt;
**ambox-*: articles;&lt;br /&gt;
**tmbox-*: talk pages;&lt;br /&gt;
**cmbox-*: categories;&lt;br /&gt;
**imbox-*: images and&lt;br /&gt;
**ombox-*: pages in other namespaces (notably Wikipedia:).&lt;br /&gt;
**mbox-* (image, text, imageright, small): To be used along with the above, in any namespace&lt;br /&gt;
&lt;br /&gt;
== Specific styles ==&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;border-collapse:collapse&amp;#039;&amp;#039;&amp;#039; This style will eliminate 3-d style borders created by the &amp;lt;code&amp;gt;border&amp;lt;/code&amp;gt; attribute and collapse them in 1px wide borders. &amp;#039;&amp;#039;This property will override &amp;lt;code&amp;gt;cellspacing&amp;lt;/code&amp;gt;!&amp;#039;&amp;#039; To define similar whitespace, use the &amp;lt;code&amp;gt;border-spacing&amp;lt;/code&amp;gt; property (although it is not possible to have both &amp;lt;code&amp;gt;border-spacing&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;border-collapse&amp;lt;/code&amp;gt; for the same table).&lt;br /&gt;
&lt;br /&gt;
===Moving stuff===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;float:right&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;clear:right&amp;#039;&amp;#039;&amp;#039; These styles are used to move a table to the right-hand side of the screen. Float right is equivalent to &amp;lt;code&amp;gt;align=&amp;quot;right&amp;quot;&amp;lt;/code&amp;gt; The &amp;lt;code&amp;gt;clear&amp;lt;/code&amp;gt; code property makes it impossible for the movement to be blocked by another box or picture: the template will automatically move under it.&lt;br /&gt;
&lt;br /&gt;
===Margins and sizes===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;margin:0 0 0.5em 1em;&amp;#039;&amp;#039;&amp;#039; 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 &amp;#039;&amp;#039;&amp;#039;float: right;&amp;#039;&amp;#039;&amp;#039;).&lt;br /&gt;
**&amp;#039;&amp;#039;&amp;#039;margin:0 1em 0.5em 0;&amp;#039;&amp;#039;&amp;#039; This performs the same function as the style directly above, but should be used for boxes which are floated left (using &amp;#039;&amp;#039;&amp;#039;float: left;&amp;#039;&amp;#039;&amp;#039;).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Wikipedia:Catalogue of CSS classes]]&lt;br /&gt;
*[[Wikipedia:WikiProject Microformats/classes|Classes used in microformats]]&lt;br /&gt;
&lt;br /&gt;
{{Wikipedia technical help|collapsed}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Wikipedia template help|Styles]]&lt;/div&gt;</summary>
		<author><name>Tachyony</name></author>
	</entry>
</feed>