Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 675f44c447
Fetching contributors…

Cannot retrieve contributors at this time

64 lines (56 sloc) 3.178 kb
<link rel="stylesheet" href="css.css" type="text/css"/>
<h1>CSS Styles Support</h1>
<p>Currently CSS styling is supported inline in tags, and via simple rules.</p>
<p>For example:</p>
<p style="font-family:courier;">&lt;p style=&quot;color:red; font-size: 30px;text-decoration:underline;&quot;&gt;Some fancy text&lt;/p&gt;</p>
<p style="color:red; font-size: 30px;text-decoration:underline;">Some fancy text</p>
<p>This way you can affect the way hyperlinks are decorated: <a href="">@cocoanetics</a> versus <a style="color:gray; text-decoration:none;" href="">@cocoanetics</a></p>
<h2>CSS Rules</h2>
<p>One or more style blocks are merged into a style sheet. Multiple matching styles are combined in this order, later styles overriding earlier ones.</p>
<li>Tag Name</li>
<li>Class Name (multiple classes possible)</li>
<li>Class Name + Tag Name</li>
<li>Tag ID</li>
<li>Local Style attribute of Tag</li>
<p>Not yet implemented are pseudo-selectors (first child).</p>
<h2>Supported Attributes</h2>
<li>color - names <span style="color:red;">(red)</span> or hex <span style="color:#FF0000;">(#FF0000)</span> or rbg <span style="color:rgb(255, 0, 0);">rgb(255, 0, 0);</span></li>
<li>decoration - <span style="text-decoration:underline;">underline</span>, <span style="text-decoration:line-through;">line-through</span></li>
<li>font-size - specified in pixels (12px)</li>
<li>font-family - to specify the postscript name of a family like <span style="font-family:courier;">Courier</span></li>
<li>font-style - normal, inherit, <span style="font-style:italic;">italic</span>, <span style="font-style:oblique;">oblique</span></li>
<li>font-weight - normal, <span style="font-weight:bold;">bold</span></li>
<h2>Font Families</h2>
<div style="font-size:30px">
<p style="font-family:serif">serif</p>
<p style="font-family:sans-serif">sans-serif</p>
<p style="font-family:monospace">monospace</p>
<p style="font-family:cursive">cursive</p>
<p style="font-family:fantasy">fantasy</p>
<h2>Text Shadows</h2>
<p>The text-shadow property is supported.</p>
<p style="color:blue;font-size:30px; text-shadow: 0.15em 0.15em #AAA">Text with Shadow</p>
<p style="font-family:Helvetica;font-weight:bold;font-size:30px; color:#FFF; text-shadow: -1px -1px #555, 1px 1px #EEE">Embossed</p>
<p style="font-size:30px;color:red; text-shadow: 0px 0px 3px red;">Glowing</p>
<p style="font-size:30px; font-weight:bold; text-shadow:0.2em 0.5em 0.1em #600,
-0.3em 0.1em 0.1em #060,
0.4em -0.3em 0.1em #006">Multiple Shadows</p>
<p style="font-size:30px; text-shadow: blue 0.1em 0.1em 0.2em">Text with Shadow</p>
<p style="font-family:Helvetica;font-size:20px; color:yellow; font-weight:bold; text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black">OUTLINE</p>
<h2>To Do</h2>
<li>More robust mapping of font family to available fonts, support for fallback</li>
<li>text-decoration - blink, overline</li>
<li>font-variant - to support smallcaps</li></ul>
<h1 class="s2 s18"><span class="c10">This text should be centered</span></h1>
Jump to Line
Something went wrong with that request. Please try again.