This is a plugin to add a range of shadow types to a range of objects. Currently supported are images, divs and blockquotes.
This is a plugin to add a range of shadow types to a range of objects. Currently supported are images, divs and blockquotes.
I got the inspiration from the cocoia blog and Sebastiaan de With was kind enough to let me use the shadow image that he applies to his images.
I have tested this plugin in the following browsers:
Internet Explorer 6 is not supported due to the use of transparent png images in ways that regular work arounds don’t address. As such the plugin stops the shadows from displaying in IE6.
The opacity setting is disabled for all versions of Internet Explorer due to bugs in how it renders (even IE8).
Add one of the following classes to the object:
shadow_curl
shadow_flat
shadow_osx
shadow_osx_small
For images this is as simply as adding the text to the end of the “CSS Class” under the “Advanced Settings” for the image.
For divs and blockquotes you will need to use the HTML view in the editor and add class="shadow_curl"
to the object.
I decided against applying the shadows to everything it could recognise as this could easily turn into a huge mess though I am open to suggestions on other ways to do it.
From Sebastiaan: “the only thing I’d suggest is adding a border to the divs, otherwise the shadow looks rather detached.” I have elected not to do this automatically to allow you greater control over the appearance of your pages.
class="shadow_curl"
, class="shadow_flat"
, etc on the objects you want to have shadows.Screenshot taken with Firefox 3.5. The opacity of the flat shadows has been set to 80% which will not be applied in IE. Other than that the appearance will be the same across all supported browsers.
Screenshot taken with Firefox 3.5. This shows the two OS X window style shadows shadow_osx
and shadow_osx_small
So far images, divs and blockquotes.
Version 7 and up is, with the exception that the opacity level of the shadows cannot be changed.
For images this is as simply as adding shadow_xxxx
to the end of the “CSS Class” under the “Advanced Settings” for the image.
For divs and blockquotes you will need to use the HTML view in the editor and add class="shadow_xxxx"
to the object.
The initial release was aimed at getting the “curl” shadows looking good. In subsequent releases I may add support for “normal” drop shadows if it is requested.
border-collapse:collapse;
to the tables used by the OS X style shadows