<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: stylesheet code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Sat, 17 May 2008 16:16:01 GMT</pubDate>
    <description>DZone Snippets: stylesheet code</description>
    <item>
      <title>Adding style to SVG</title>
      <link>http://snippets.dzone.com/posts/show/5392</link>
      <description>To reference a CSS file within an SVG file refer to the following example code.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;?xml-stylesheet href="styles_austria_1.css" type="text/css"?&gt; &lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Here's what an SVG CSS file looks like.&lt;br /&gt;&lt;code&gt;&lt;br /&gt;.str1 {stroke:#0093DD;stroke-width:16;color:#0093DD}&lt;br /&gt;.str2 {stroke:#0093DD;stroke-width:12}&lt;br /&gt;.str3 {stroke:#0093DD;stroke-width:10}&lt;br /&gt;.str4 {stroke:#0093DD;stroke-width:6}&lt;br /&gt;&lt;br /&gt;.str0 {stroke:#DA251D;stroke-width:55;color:#DA251D}&lt;br /&gt;.str6 {stroke:#BB90BB;stroke-width:44;color:#BB90BB}&lt;br /&gt;.str5 {stroke:#0093DD;stroke-width:4}&lt;br /&gt;.str7 {stroke:#1F1A17;stroke-width:13}&lt;br /&gt;&lt;br /&gt;.fil0 {fill:none}&lt;br /&gt;.fil2 {fill:#1F1A17}&lt;br /&gt;.fil1 {fill:#C4E5FA}&lt;br /&gt;.fil3 {fill:#FFFFFF}&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Source: &lt;a href="http://www.carto.net/papers/svg/samples/styles.shtml"&gt;Example for using CSS-Styles&lt;/a&gt; [carto.net]&lt;br /&gt;Reference: &lt;a href="http://www.w3.org/TR/SVG/styling.html#StylingWithCSS"&gt;Styling - SVG 1.1 - 20030114&lt;/a&gt; [w3.org]</description>
      <pubDate>Fri, 18 Apr 2008 21:37:11 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/5392</guid>
      <author>jrobertson (James Robertson)</author>
    </item>
    <item>
      <title>CSS Menu with Highlights</title>
      <link>http://snippets.dzone.com/posts/show/3141</link>
      <description>// Simple CSS that will let you do away with clunky images forever! This script will create a perfect menu that highlights links when the mouse rolls over! The beauty of CSS is that this script is compact, lightweight and customizeable! This is a perfect example of the power of CSS.&lt;br /&gt;&lt;a href="http://www.webscriptexpert.com/demo/css-highlight-menu.html"&gt;DEMO&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.webscriptexpert.com"&gt;webscriptexpert.com&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;HTML CODE HERE&gt;&lt;br /&gt;&lt;CODE&gt;&lt;br /&gt;&lt;table border="0" width=175&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td width="100%" bgcolor="#E6E6E6"&gt;&lt;span class="style7"&gt;&lt;b&gt;CSS MENU&lt;b&gt;&lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td width="100%"&gt;&lt;span class="style5"&gt;&lt;a href="http://www.webscriptexpert.com" class="selector"&gt;Web Script Expert&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td width="100%"&gt;&lt;span class="style5"&gt;&lt;a href="http://www.webscriptexpert.com" class="selector"&gt;Actionscript&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td width="100%"&gt;&lt;span class="style5"&gt;&lt;a href="http://www.webscriptexpert.com" class="selector"&gt;PHP CSS&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td width="100%"&gt;&lt;span class="style5"&gt;&lt;a href="http://www.webscriptexpert.com" class="selector"&gt;Javascript&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;/table&gt;&lt;br /&gt;&lt;/CODE&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;CSS CODE HERE&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;style&gt;&lt;br /&gt;A.selector {&lt;br /&gt;display: block;&lt;br /&gt;width: 198px;&lt;br /&gt;text-align: left;&lt;br /&gt;text-decoration: none;&lt;br /&gt;font-family:arial;&lt;br /&gt;font-size:12px;&lt;br /&gt;color: #000000;&lt;br /&gt;BORDER: none;&lt;br /&gt;border: solid 1px #FFFFFF;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;A.selector:hover {&lt;br /&gt;border: solid 1px #6100C1;&lt;br /&gt;background-color:#F0E1FF;&lt;br /&gt;}&lt;br /&gt;.style5 {font-family: Arial, Helvetica, sans-serif; font-size: 14px; }&lt;br /&gt;.style7 {font-family: Arial, Helvetica, sans-serif; font-size: 14px; font-weight: bold; }&lt;br /&gt;&lt;/style&gt;&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Wed, 13 Dec 2006 00:55:36 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/3141</guid>
      <author>webscriptexpert (r)</author>
    </item>
    <item>
      <title>CSS Drop Shadows</title>
      <link>http://snippets.dzone.com/posts/show/3140</link>
      <description>This handy technique allows us to build flexible CSS drop shadows that we can apply to any arbitraryblock elements. The beauty of this method is that most exisitng techniques use images to create the shadow effect. This script is lightweight and uses pure CSS! ENJOY!&lt;br /&gt;&lt;a href="http://www.webscriptexpert.com"&gt;www.webscriptexpert.com&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;HTML PAGE HERE&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;br /&gt;&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"&gt;&lt;br /&gt;&lt;head&gt;&lt;br /&gt;&lt;title&gt;CSS Drop Shadow DEMO&lt;/title&gt;&lt;br /&gt;&lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;&lt;br /&gt;&lt;link media="screen" type="text/css" rel="stylesheet" href="dropshadow.css" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;style&gt;&lt;br /&gt;body {&lt;br /&gt;margin: 0px;&lt;br /&gt;padding: 20px;&lt;br /&gt;font-family: verdana;&lt;br /&gt;font-size: 12px;&lt;br /&gt;min-width: 770px;&lt;br /&gt;}&lt;br /&gt;&lt;/style&gt;&lt;br /&gt;&lt;br /&gt;&lt;/head&gt;&lt;br /&gt;&lt;br /&gt;&lt;body&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id="shadow-container"&gt;&lt;br /&gt;&lt;div class="shadow1"&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="shadow2"&gt;&lt;br /&gt;&lt;div class="shadow3"&gt;&lt;br /&gt;&lt;div class="container"&gt;&lt;br /&gt;&lt;p&gt;This is a sample of how we implement the CSS style to create flexible CSS drop shadows that can be applied to block elements.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;The beauty of this script is that is doesnt use any images to create the final effect, just pure CSS!&lt;/p&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;table cellspacing=0 cellpadding=0 border=0 width="100%"&gt;&lt;tr valign="top"&gt;&lt;br /&gt;&lt;td width="22%" height="218"&gt;&lt;br /&gt;&lt;div id="shadow-container"&gt;&lt;br /&gt;&lt;div class="shadow1"&gt;&lt;br /&gt;&lt;div class="shadow2"&gt;&lt;br /&gt;&lt;div class="shadow3"&gt;&lt;br /&gt;&lt;div class="container"&gt;&lt;br /&gt;The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/td&gt;&lt;br /&gt;&lt;td width="21%"&gt;&lt;/td&gt;&lt;br /&gt;&lt;td width="57%"&gt;&lt;br /&gt;&lt;div id="shadow-container"&gt;&lt;br /&gt;&lt;div class="shadow1"&gt;&lt;br /&gt;&lt;div class="shadow2"&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="shadow3"&gt;&lt;br /&gt;&lt;div class="container"&gt;The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. &lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;&lt;/body&gt;&lt;br /&gt;&lt;/html&gt;&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;.CSS FILE HERE&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;br /&gt;/* CSS container shadow */&lt;br /&gt;#shadow-container {&lt;br /&gt;position: relative;&lt;br /&gt;left: 3px;&lt;br /&gt;top: 3px;&lt;br /&gt;margin-right: 3px;&lt;br /&gt;margin-bottom: 3px;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;#shadow-container .shadow2,&lt;br /&gt;#shadow-container .shadow3,&lt;br /&gt;#shadow-container .container {&lt;br /&gt;position: relative;&lt;br /&gt;left: -1px;&lt;br /&gt;top: -1px;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;#shadow-container .shadow1 {&lt;br /&gt;background: #F1F0F1;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;#shadow-container .shadow2 {&lt;br /&gt;background: #DBDADB;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;#shadow-container .shadow3 {&lt;br /&gt;background: #B8B6B8;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;#shadow-container .container {&lt;br /&gt;background: #ffffff;&lt;br /&gt;border: 1px solid #848284;&lt;br /&gt;padding: 10px;&lt;br /&gt;}&lt;br /&gt;/* CSS container shadow */&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Wed, 13 Dec 2006 00:53:02 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/3140</guid>
      <author>webscriptexpert (r)</author>
    </item>
  </channel>
</rss>
