Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update readme

  • Loading branch information...
commit b6d72d81adac11545444aea7b62d1a8b4e497408 1 parent d9db7bf
@ndp authored
Showing with 14 additions and 1 deletion.
  1. +14 −1 README.markdown
View
15 README.markdown
@@ -1,6 +1,6 @@
# Csster
-Small libary to generate CSS style rules within Javascript.
+Generate CSS style rules within Javascript.
## Usage
@@ -17,6 +17,19 @@ Csster.style({
...
</pre>
+Result, inserted in DOM automatically at the bottom of the &lt;head&gt; element:
+<pre>
+...
+<style type="text/stylesheet">
+h1 {
+font-size: 18px;
+color: red;
+}
+</style>
+</head>
+...
+</pre>
+
### Format of CSS Rules
The *style* method accepts CSS rules passed either as arrays or hashes, arrays just being
Please sign in to comment.
Something went wrong with that request. Please try again.