CSS Drop shadow on images – ALL sides
-
Hey everyone,
Ok. So after alot of searching on the forums, browsing the web and reading up about this I still can’t figure it out. I’m not a CSS guru first of all, but I know how it works and can do some basic coding.
What I’m trying to do is have all my post images be surrounded (on all four sides) by a very subtle drop shadow.
I found this example, and it’s pretty much the result I’m looking for! I want to use shadow images for all four sides and the corners. But I can’t seem to figure out how to apply this to my wordpress blog?
https://www.ebenoit.com/tutorials/css_flexible_dropshadow.html
I also found a simple way to do it with an html table:
<table width=”100″ cellpadding=”0″ cellspacing=”0″ border=”0″>
<tr>
<td><img src=”shadow_ul.gif” width=”4″ height=”4″ border=”0″></td>
<td background=”shadow_top.gif”><img src=”shadow_top.gif” width=”1″ height=”4″ border=”0″></td>
<td><img src=”shadow_ur.gif” width=”4″ height=”4″ border=”0″></td>
</tr>
<tr>
<td background=”shadow_left.gif”><img src=”/shadow_left.gif” width=”4″ height=”1″ border=”0″></td>
<td width=”92″><img src=”IMAGE.jpg” border=”0″></td>
<td background=”shadow_right.gif”><img src=”shadow_right.gif” width=”4″ height=”1″ border=”0″></td>
</tr><tr>
<td><img src=”shadow_bl.gif” width=”4″ height=”4″ border=”0″></td>
<td background=”shadow_bottom.gif”><img src=”shadow_bottom.gif” width=”1″ height=”4″ border=”0″></td>
<td><img src=”shadow_br.gif” width=”4″ height=”4″ border=”0″></td>
</tr>
</table>But I don’t want to edit core wordpress files by surrounding the code that prints the image by the <div> tags, or some other tables. So does anyone have any ideas about how to apply this in WP?
Thanks for all your help in advance ??
-Bartek
- The topic ‘CSS Drop shadow on images – ALL sides’ is closed to new replies.