CSS not working for Image?
-
For both the Image Grid Widget and Image Widget, entering the following code for Widget Class or CSS Styles is not working. From the widget’s right side menu, I entered the following:
Widget Styles->Attributes->Widget Class:
disabledrag
Widget Styles->Attributes->CSS Styles:
.disabledrag img { -webkit-user-drag: none; -khtml-user-drag: none; -moz-user-drag: none; -o-user-drag: none; user-drag: none; }
However, on the updated webpage, the code does not work, and right-click is still allowed. Adding the above CSS to the Row attributes which contained these image widgets did not work either. If using the Siteorigin Editor Widget, the code works great for the Text but not on images.
Please advice, is this a bug effecting only the images and not the text, or is the code incorrect? In addition to disabling right-click, is it possible to display the text “All Rights Reserved ?”, when a user right-clicks?
- The topic ‘CSS not working for Image?’ is closed to new replies.