Mobile Friendly Website


Doing it with style

CSS DEMOSSimple fluid drop shadows

Date : Pre 2006

For all modern browsers


This is the text that goes in the middle.


Another box that has a bit more text so that the box will be taller and the shadow stretches to suit.


One more text box that has a lot more text so that the box will be even taller and the shadow will still shadow to suit. The shadow color can be matched to the background and can also be positioned to the left or right.

Can be applied to images

A left positioned shadow


and finally a text box with a surround shadow.

A raised box


Nothing fancy or complicated this time. Just a simple way of producing drop shadows that are fluid and require NO graphics.

With CSS3 box shadow styles this is more or less redundant.

Because of all the time and effort spent in producing this demonstration I would ask that you respect my copyright.

  1. If you are using this on a personal web site then please retain the copyright comment in the stylesheet.
    A support donation is now required for this demonstration.
  2. If you are using this on a commercial web site, or as a paying job for a client, then please email me asking for permission - stu{at} and again a support donation is required.
  3. If you are having problems integrating any of my demonstrations into your website then I now offer a service to fault find and correct any errors that you may have introduced. Please email me for more information.


Your donations keep CSS PLAY running.
If your donation is for the use of a demo then please email me with the demo url after making your donation.


Facebook Twitter rss feed Facebook Fan Page