<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: shadow code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Thu, 24 Jul 2008 07:39:14 GMT</pubDate>
    <description>DZone Snippets: shadow code</description>
    <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>
