Skip to content
Browse files

CSS3 example added

  • Loading branch information...
1 parent 24793ee commit a920f0baedbe54307a1b198c2690ba641086915d @christianhellsten committed Oct 29, 2009
Showing with 15 additions and 0 deletions.
  1. +15 −0 README.textile
View
15 README.textile
@@ -48,6 +48,21 @@ h3. JavaScript
</code>
</pre>
+h3. CSS
+
+<pre>
+ <code>
+ #map-tooltip { width: 200px; height: 100px; color: white; padding: 20px; }
+ // Now let's add some CSS3 styles
+ // Rounded corners
+ #map-tooltip, .button { -moz-border-radius:5px; -webkit-border-radius:5px; }
+ // Drop shadow
+ #map-tooltip { box-shadow:rgba(0,0,0,0.9) 0 0 10px; -webkit-box-shadow:rgba(0,0,0,0.9) 0 0 10px; -moz-box-shadow:rgba(0,0,0,0.9) 0 0 10px; }
+ // Transparent background
+ #map-tooltip { background: rgba(10, 10, 10, 0.6); }
+ </code>
+</pre>
+
That's all folks.
h2. References

0 comments on commit a920f0b

Please sign in to comment.
Something went wrong with that request. Please try again.