Css rule
-
i am trying to make my posts read only. i added the following css rule in the css editor found at the appearance – customize.
p {
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: -moz-none;
-o-user-select: none;
user-select: none;
}Once i put the rule, it works, the posts become read only. after i click the save button and refresh the page, the rule disappears and the posts are not read only any more. what am i doing wrong?
The blog I need help with is: (visible only to logged in users)
-
You aren’t doing anything wrong, but that CSS is not an official part of CSS so it is problematic at best and different browsers do different things with it. Take a look at this Mozilla Developers Network document: https://developer.mozilla.org/en-US/docs/Web/CSS/user-select
Until it becomes officially adopted by the World Wide Web Consortium and becomes a part of CSS3 it is unlikely to be allowed here.
-
- The topic ‘Css rule’ is closed to new replies.