Vanilla 1.1.9 is a product of Lussumo. More Information: Documentation, Community Support.
1 to 9 of 9
"This unobtrusive script will throw a drop shadow on any block element with the class 'highContrast'. The result is a hard-edged offset shadow that's not necessarily pretty, but it gets the job done."
http://www.scottjehl.com/jsDropShadows/
h1 {color:#000; position:relative;}
span.shadow {color:#fff; position:absolute; top:-2px; left:-2px;}
<h1>Hello World!<span class="shadow">Hello World!</span></h1>
the shadows actually ARE done using css... the trick is that the original source doesn't have repeated content.
All the script does is take the content, toss it into a couple spans, give one a class "shadow", and insert them back into the element. The css handles the presentation after that. The idea is to NOT have duplicated content in the source.
basically, an element that looks like this in the source:
<h2 class="highContrast">Here's an example</h2>
Becomes this after the script passes through:
<h2 class="highContrast">
<span class="shadow">Here's an example</span>
<span>Here's an example</span>
</h2>
If you view the generated source, you can see what I mean.
lemme know if you have any more questions, thanks for the feedback!
1 to 9 of 9