We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9d5cf3 commit 2e54946Copy full SHA for 2e54946
1 file changed
css-practice.md
@@ -1162,7 +1162,9 @@ p {
1162
1163
How do you prevent the user from selecting the text rendered inside the following element?
1164
1165
+```html
1166
<p>I should not be selectable</p>
1167
+```
1168
1169
Pick ONE OR MORE options
1170
@@ -1176,6 +1178,18 @@ Pick ONE OR MORE options
1176
1178
4. None of the above
1177
1179
```
1180
1181
+<details><summary><b>Answer</b></summary>
1182
+
1183
+```css
1184
+p {
1185
+ user-select: none;
1186
+}
1187
1188
1189
+**⚝ [Try this example on CodeSandbox](https://codesandbox.io/s/css-selection-kvuzpr?file=/src/styles.css)**
1190
1191
+</details>
1192
1193
<div align="right">
1194
<b><a href="#">↥ back to top</a></b>
1195
</div>
0 commit comments