I am wrapping an auto-generated div around an image, and I need to apply some styling from the image to the div.
How can I read/get the CSS rule for border-radius that is affecting the image?
For example, if the CSS is setting the border-radius to 30px, it should return "30px", and if it's 50%, it should return "50%" - I want the actual rule, not just a pixel value

$el.css('border-radius');
where $el is the jQuery object of the generated div.
http://jsfiddle.net/TrueBlueAussie/qfpuLekt/1/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With