<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://shifti.org/index.php?action=history&amp;feed=atom&amp;title=Help%3ACustom_css</id>
	<title>Help:Custom css - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://shifti.org/index.php?action=history&amp;feed=atom&amp;title=Help%3ACustom_css"/>
	<link rel="alternate" type="text/html" href="https://shifti.org/index.php?title=Help:Custom_css&amp;action=history"/>
	<updated>2026-04-21T21:19:56Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.0-alpha</generator>
	<entry>
		<id>https://shifti.org/index.php?title=Help:Custom_css&amp;diff=10482&amp;oldid=prev</id>
		<title>ShadowWolf: /* id selectors */ make a note about this being the preferred type of selector</title>
		<link rel="alternate" type="text/html" href="https://shifti.org/index.php?title=Help:Custom_css&amp;diff=10482&amp;oldid=prev"/>
		<updated>2009-02-16T04:25:10Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;id selectors: &lt;/span&gt; make a note about this being the preferred type of selector&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:25, 15 February 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l14&quot;&gt;Line 14:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 14:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==== id selectors ====&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==== id selectors ====&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;An &amp;#039;id selector&amp;#039; uses the &amp;#039;id&amp;#039; property that can be given to an HTML tag. It has the form: #&amp;amp;lt;id&amp;amp;gt; and uniquely identifies a single element in the entire page. By using an &amp;#039;id selector&amp;#039; you do not have to know what type of element is being specified, just the name. A good example of an &amp;#039;id selector&amp;#039; is the one that is used to reference the part of a page that contains the text of a story&amp;amp;mdash;#bodyContent&amp;amp;mdash;and while this name might seem specific to just the &amp;quot;Monobook&amp;quot; skin that is the default look of a Wiki based on the MediaWiki software, it is referenced even in the &amp;#039;common&amp;#039; CSS files that all skins use, so it should be valid regardless of the current skin.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;An &amp;#039;id selector&amp;#039; uses the &amp;#039;id&amp;#039; property that can be given to an HTML tag. It has the form: #&amp;amp;lt;id&amp;amp;gt; and uniquely identifies a single element in the entire page. By using an &amp;#039;id selector&amp;#039; you do not have to know what type of element is being specified, just the name. A good example of an &amp;#039;id selector&amp;#039; is the one that is used to reference the part of a page that contains the text of a story&amp;amp;mdash;#bodyContent&amp;amp;mdash;and while this name might seem specific to just the &amp;quot;Monobook&amp;quot; skin that is the default look of a Wiki based on the MediaWiki software, it is referenced even in the &amp;#039;common&amp;#039; CSS files that all skins use, so it should be valid regardless of the current skin.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;This is the preferred format of selector because id&#039;s are unique&amp;amp;mdash;no element can have the same id as another if the page is expected to be considered standards compliant. Since the MediaWiki engine (and hence, Shifti) tries to only output standards compliant pages, there will only ever be one element with any given id. If you&#039;re using [http://spreadfirefox.com FireFox] you can use the [[wikipedia:Firebug (Firefox extension)|Firebug]] extension to find out which ID is used by which element of the page. If you are not using FireFox you can use the &#039;view source&#039; command to see the HTML that a page is built from&amp;amp;mdash;however it can be tricky to figure out which element covers the part of the page you are referencing this way.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==== element selectors ====&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==== element selectors ====&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key shifti_wiki-shifti_:diff:1.41:old-10481:rev-10482:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>ShadowWolf</name></author>
	</entry>
	<entry>
		<id>https://shifti.org/index.php?title=Help:Custom_css&amp;diff=10481&amp;oldid=prev</id>
		<title>ShadowWolf: make sure that it is exceptionally clear that the custom css is unique to each individual user</title>
		<link rel="alternate" type="text/html" href="https://shifti.org/index.php?title=Help:Custom_css&amp;diff=10481&amp;oldid=prev"/>
		<updated>2009-02-16T03:59:13Z</updated>

		<summary type="html">&lt;p&gt;make sure that it is exceptionally clear that the custom css is unique to each individual user&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:59, 15 February 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In the past people styled HTML by using inline tags such as &amp;amp;lt;FONT&amp;amp;gt; and that was good. But as time progressed people began searching for easier and easier ways to maintain consistent styling across large websites. In the end the [http://www.w3c.org W3C] (Worldwide Web Consortium) settled on CSS (cascading stylesheets). This is the technology that provides the style for all websites that seek to be compliant with the standards that the W3C has published. Since the MediaWiki engine that runs Shifti is the exact same code that runs Wikipedia, it outputs HTML that is compliant with one of the more recent forms of HTML (XHTML 1.0/Transitional).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In the past people styled HTML by using inline tags such as &amp;amp;lt;FONT&amp;amp;gt; and that was good. But as time progressed people began searching for easier and easier ways to maintain consistent styling across large websites. In the end the [http://www.w3c.org W3C] (Worldwide Web Consortium) settled on CSS (cascading stylesheets). This is the technology that provides the style for all websites that seek to be compliant with the standards that the W3C has published. Since the MediaWiki engine that runs Shifti is the exact same code that runs Wikipedia, it outputs HTML that is compliant with one of the more recent forms of HTML (XHTML 1.0/Transitional).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;But because of it&#039;s reliance on CSS for all styling, we get a bonus. MediaWiki&amp;lt;ref&amp;gt;The software that Shifti is built on&amp;lt;/ref&amp;gt; allows all users to create custom CSS files that are loaded and can override settings in the sites own stylesheets.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;But because of it&#039;s reliance on CSS for all styling, we get a bonus. MediaWiki&amp;lt;ref&amp;gt;The software that Shifti is built on&amp;lt;/ref&amp;gt; allows all users to create custom CSS files that are loaded and can override settings in the sites own stylesheets&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;. &#039;&#039;&#039;NOTE:&#039;&#039;&#039; These Custom CSS files are unique to each user&amp;amp;mdash;styles or formatting you have in your own is not visible or accessible by another user&amp;amp;mdash;and you must be logged in for this to work&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;__TOC__&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;__TOC__&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Basics ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Basics ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key shifti_wiki-shifti_:diff:1.41:old-10479:rev-10481:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>ShadowWolf</name></author>
	</entry>
	<entry>
		<id>https://shifti.org/index.php?title=Help:Custom_css&amp;diff=10479&amp;oldid=prev</id>
		<title>ShadowWolf: oops - forgot to flag as a help page</title>
		<link rel="alternate" type="text/html" href="https://shifti.org/index.php?title=Help:Custom_css&amp;diff=10479&amp;oldid=prev"/>
		<updated>2009-02-16T03:47:01Z</updated>

		<summary type="html">&lt;p&gt;oops - forgot to flag as a help page&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:47, 15 February 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l52&quot;&gt;Line 52:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 52:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Footnotes/References ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Footnotes/References ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;references/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;references/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{help}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key shifti_wiki-shifti_:diff:1.41:old-10476:rev-10479:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>ShadowWolf</name></author>
	</entry>
	<entry>
		<id>https://shifti.org/index.php?title=Help:Custom_css&amp;diff=10476&amp;oldid=prev</id>
		<title>ShadowWolf: Custom CSS Hacks has been created - lets change the note to an invitation to modify that page</title>
		<link rel="alternate" type="text/html" href="https://shifti.org/index.php?title=Help:Custom_css&amp;diff=10476&amp;oldid=prev"/>
		<updated>2009-02-16T03:44:06Z</updated>

		<summary type="html">&lt;p&gt;&lt;a href=&quot;/wiki/Custom_CSS_Hacks&quot; title=&quot;Custom CSS Hacks&quot;&gt;Custom CSS Hacks&lt;/a&gt; has been created - lets change the note to an invitation to modify that page&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:44, 15 February 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l48&quot;&gt;Line 48:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 48:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;For more ideas, see the [[Custom CSS Hacks]] page. (Go ahead and create &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;it &lt;/del&gt;if &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;the page doesn&#039;t exist&lt;/del&gt;!)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;For more ideas, see the [[Custom CSS Hacks]] page. (Go ahead and &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;add your own hacks - even &lt;/ins&gt;create &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;new headings &lt;/ins&gt;if &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;you need to&lt;/ins&gt;!)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Footnotes/References ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Footnotes/References ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;references/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;references/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key shifti_wiki-shifti_:diff:1.41:old-10473:rev-10476:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>ShadowWolf</name></author>
	</entry>
	<entry>
		<id>https://shifti.org/index.php?title=Help:Custom_css&amp;diff=10473&amp;oldid=prev</id>
		<title>ShadowWolf: We need this...</title>
		<link rel="alternate" type="text/html" href="https://shifti.org/index.php?title=Help:Custom_css&amp;diff=10473&amp;oldid=prev"/>
		<updated>2009-02-16T03:30:03Z</updated>

		<summary type="html">&lt;p&gt;We need this...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;In the past people styled HTML by using inline tags such as &amp;amp;lt;FONT&amp;amp;gt; and that was good. But as time progressed people began searching for easier and easier ways to maintain consistent styling across large websites. In the end the [http://www.w3c.org W3C] (Worldwide Web Consortium) settled on CSS (cascading stylesheets). This is the technology that provides the style for all websites that seek to be compliant with the standards that the W3C has published. Since the MediaWiki engine that runs Shifti is the exact same code that runs Wikipedia, it outputs HTML that is compliant with one of the more recent forms of HTML (XHTML 1.0/Transitional).&lt;br /&gt;
&lt;br /&gt;
But because of it&amp;#039;s reliance on CSS for all styling, we get a bonus. MediaWiki&amp;lt;ref&amp;gt;The software that Shifti is built on&amp;lt;/ref&amp;gt; allows all users to create custom CSS files that are loaded and can override settings in the sites own stylesheets.&lt;br /&gt;
__TOC__&lt;br /&gt;
== Basics ==&lt;br /&gt;
The basic format of a stylesheet is:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;amp;lt;selector&amp;amp;gt; { &amp;amp;lt;rules&amp;amp;gt; }&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A &amp;#039;selector&amp;#039; is how the element or section of the page that the style applies to is defined. There are various forms of them and we&amp;#039;ll get into that in a bit. The &amp;#039;rules&amp;#039; are a series of name/value pairs and the end of a rule is specified with a semicolon (;). These will &amp;#039;cascade&amp;#039; to all parts of a page that are at a &amp;#039;lower level&amp;#039; than the part specified by the selector.&lt;br /&gt;
&lt;br /&gt;
=== Selectors ===&lt;br /&gt;
As stated above, there are multiple forms of selectors. There are &amp;#039;id selectors&amp;#039;, &amp;#039;element selectors&amp;#039;, &amp;#039;path selectors&amp;#039;, &amp;#039;class selectors&amp;#039; and &amp;#039;pseudo-selectors&amp;#039;. Each of these has a specific and different format&amp;amp;mdash;although a &amp;#039;path selector&amp;#039; is a special form of &amp;#039;element&amp;#039; selector that specifies a specific element (or set of elements) based on how they are nested in the document.&lt;br /&gt;
&lt;br /&gt;
==== id selectors ====&lt;br /&gt;
An &amp;#039;id selector&amp;#039; uses the &amp;#039;id&amp;#039; property that can be given to an HTML tag. It has the form: #&amp;amp;lt;id&amp;amp;gt; and uniquely identifies a single element in the entire page. By using an &amp;#039;id selector&amp;#039; you do not have to know what type of element is being specified, just the name. A good example of an &amp;#039;id selector&amp;#039; is the one that is used to reference the part of a page that contains the text of a story&amp;amp;mdash;#bodyContent&amp;amp;mdash;and while this name might seem specific to just the &amp;quot;Monobook&amp;quot; skin that is the default look of a Wiki based on the MediaWiki software, it is referenced even in the &amp;#039;common&amp;#039; CSS files that all skins use, so it should be valid regardless of the current skin.&lt;br /&gt;
&lt;br /&gt;
==== element selectors ====&lt;br /&gt;
Element Selectors are used to apply the same base styles to all elements with a certain name in the entire page. For instance, using &amp;#039;div&amp;#039;&amp;lt;ref&amp;gt;Yes, without the quotes&amp;lt;/ref&amp;gt; as a selector will cause that set of CSS rules to apply to all the &amp;amp;lt;div&amp;amp;gt; elements in a page. This is a very generic selector and unless you are extremely skilled at styling websites, you should avoid using it.&lt;br /&gt;
&lt;br /&gt;
==== path selectors ====&lt;br /&gt;
No, this isn&amp;#039;t formatted like the path to a file. Instead it is actually a list of &amp;#039;id&amp;#039; and &amp;#039;element&amp;#039; selectors that specifically identifies either a section of the document or a specific element based on the way the various HTML tags are nested. For instance you can specify all &amp;amp;lt;p&amp;amp;gt; tags inside the body of a page using the path selector: #bodyContent p&lt;br /&gt;
&lt;br /&gt;
==== class selectors ====&lt;br /&gt;
Class selectors either start with a period or have a period in them and specify a name that can be used as the value of the &amp;quot;class&amp;quot; property of an HTML tag. It is unclear, but generally no element in a page output by the MediaWiki engine has a class parameter so this type of selector is of no real use on Shifti. Class selectors, like all other types of selector (save the pseudo-selectors) can be used as an element in a path selector.&lt;br /&gt;
&lt;br /&gt;
==== pseudo-selectors ====&lt;br /&gt;
A pseudo-selector does not, actually, identify an element in the page. Instead it identifies a special property or action. Pseudo-selectors are nominally used for providing proper styling to links&amp;lt;ref&amp;gt;Since the &amp;amp;lt;a&amp;amp;gt; element doesn&amp;#039;t just mean &amp;#039;link&amp;#039; (it can also create an &amp;#039;anchor point&amp;#039; in the text of a page that can then be linked to) this is rather important&amp;lt;/ref&amp;gt; and for having things happen when you &amp;#039;hover&amp;#039; the mouse-pointer over them.&lt;br /&gt;
The only pseudo-selector that is used in the CSS for Shifti is :link&amp;lt;ref&amp;gt;Which, as the name suggests, is used for styling links&amp;lt;/ref&amp;gt;&amp;amp;mdash;though there are many others.&lt;br /&gt;
&lt;br /&gt;
=== Rules ===&lt;br /&gt;
As previously stated, a rule in CSS has the format:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;amp;lt;name&amp;amp;gt;:&amp;amp;lt;value&amp;amp;gt;;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It should not need to be said, but the &amp;#039;name&amp;#039; part is pre-defined. These range from things such as &amp;#039;font-family&amp;#039; (for defining which font to use) to &amp;#039;text-align&amp;#039; (for defining how to &amp;#039;align&amp;#039; the elements&amp;lt;ref&amp;gt;Okay, so only &amp;#039;inline&amp;#039; elements are actually affected.&amp;lt;/ref&amp;gt; and text contained in a given element). For more information about the various names of &amp;#039;CSS Properties&amp;#039; look for a reference on [http://www.google.com/ Google].&lt;br /&gt;
&lt;br /&gt;
The value part changes based on what property you are modifying. For instance, to set a page to use a &amp;#039;serif&amp;#039; font&amp;lt;ref&amp;gt;These are typefaces that have the little &amp;#039;lines&amp;#039; on the edges&amp;amp;mdash;the (in)famous &amp;#039;Times New Roman&amp;#039; is an example of a serif font&amp;lt;/ref&amp;gt; you&amp;#039;d use the &amp;#039;font-family&amp;#039; name and the value &amp;#039;Times, Roman, serif&amp;#039;&amp;lt;ref&amp;gt;That is, &amp;#039;Specific Font&amp;#039;, &amp;#039;Generic Font&amp;#039;, &amp;#039;Font Type&amp;#039; - ie: if you wanted to use &amp;#039;Times New Roman&amp;#039; as the exact font and &amp;#039;Georgia&amp;#039; as the fallback, you&amp;#039;d specify it as &amp;#039;Times New Roman, Georgia, serif&amp;#039;&amp;lt;/ref&amp;gt;. The complete rule would be: font-family: Times, Roman, serif; &amp;amp;ndash; don&amp;#039;t worry if that&amp;#039;s too complex for you, there isn&amp;#039;t going to be a quiz.&lt;br /&gt;
&lt;br /&gt;
== Custom CSS ==&lt;br /&gt;
=== Creating the File ===&lt;br /&gt;
This one is actually simple&amp;amp;hellip; Okay, maybe not that simple, but it is really easy to understand. To create a custom CSS for Shifti you&amp;#039;d just go to Special:MyFiles/&amp;amp;lt;skin name&amp;amp;gt;.css&amp;amp;mdash;for the basic &amp;#039;MonoBook&amp;#039; skin this means you&amp;#039;d go to [[Special:MyFiles/monobook.css]]. This will redirect you to a sub-page of your User: page and you then click on the &amp;#039;create&amp;#039; link and you&amp;#039;re editing CSS that will then be loaded every time you are logged in and viewing Shifti.&lt;br /&gt;
&lt;br /&gt;
=== Simple Ideas ===&lt;br /&gt;
One of the most requested features of Shifti is for paragraphs to start with an indent like you see in print. To achieve this on Shifti you&amp;#039;d put the following into your custom CSS file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#bodyContent p {&lt;br /&gt;
  text-indent: 2em;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For more ideas, see the [[Custom CSS Hacks]] page. (Go ahead and create it if the page doesn&amp;#039;t exist!)&lt;br /&gt;
&lt;br /&gt;
== Footnotes/References ==&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;/div&gt;</summary>
		<author><name>ShadowWolf</name></author>
	</entry>
</feed>