Shadow Effects to DIV, IMAGE etc. with CSS
We may need to use shadows behind objects in some cases on our web sites; but browsers don’t support all shadow codes. It is possible to see the same page with different appearances via different browsers. So, we found a little solution for that.
PNG files are going to be used for giving shadow effect to elements, because PNG format gives us lots of advantages and one of them is opacity. Make a shadow image and set size of it as you want. We made a PNG file and you can download it from here.
CSS File: Style.css
Simply, we made put a DIV behind our element and set our shadow PNG file as background of this DIV. You can write special html tag that you will use instead of “ELEMENT“. For example;
CSS File: Initializing special tags in shadowbox class.
HTML Code:
That’s it. From now on you can give shadow effects to your pages as you wish.
View DEMO:
Download This Application:
ShadowEffect.rar (19,5 KB)
Recently Typed