-
AuthorPosts
-
August 7, 2014 at 7:40 pm #80234
i have an image on a page that is a png with transparent background. however i have css code on the page that for other images on that page that it is picking up. whats the code to tell the image to disregard other css?
August 7, 2014 at 7:42 pm #80235This reply has been marked as private.August 7, 2014 at 8:48 pm #80270Hi ML,
Thanks for the information.
I tried logging into your page and see if I can inspect it further but the page was currently locked due to it being actively edited.
Regarding your issue, you can assign a different image ID for the flower and set the CSS codes based on the set image ID, as well as add the element CSS code within VC (you just need to scroll down and you should see that area where you can put these customization for CSS)
Hope that helps.
August 7, 2014 at 9:35 pm #80287This reply has been marked as private.August 7, 2014 at 11:02 pm #80331Hi there,
Just add this css at your customizer’s custom css.
img.x-image-no-css { border: 0px !important; padding: 0 !important; background-color: transparent !important; border-radius: 0 !important; -webkit-box-shadow: none !important; box-shadow: none !important; }
Then at your image shortcode, add this class name x-image-no-css at class attribute/input of your shortcode. And you can just re-use x-image-no-css to all other image shortcode without adding same css again.
Hope this helps.
-
AuthorPosts