Wrap Post Image Inside DIV
-
I’m trying to get rounded corners on images inside posts.
Initially, my thought was to create a class of rounded on images and get it done through CSS. Safari does it just fine. However, Firefox does not support rounded corners on images… just block elements.
So, my next thought was to wrap the images inside of a block element, then round the corners. What I would like to do is create a function that automatically does this for my client. Any image that is inserted within a post, whether it’s in a Page or in a Post, should be wrapped in a block element and have a class of ’rounded’, and will then have 10px rounded corners.
I’m just a designer and front-end developer so creating a custom PHP function for this is a little over my head.
Can someone give me a little guidance with this? Any help would be greatly appreciated.
Thanks!
- The topic ‘Wrap Post Image Inside DIV’ is closed to new replies.