File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1114,7 +1114,9 @@ Pick ONE OR MORE options
11141114
11151115Which of the following renders the text red?
11161116
1117+ ```html
11171118<p id="tagld"> Please color me red</p >
1119+ ```
11181120
11191121Pick ONE OR MORE options
11201122
@@ -1128,6 +1130,30 @@ Pick ONE OR MORE options
112811304. p { color : red !important ; } #tagId { color : blue ; }
11291131```
11301132
1133+ <details > <summary > <b > Answer</b > </summary >
1134+
1135+ ```css
1136+ :root {
1137+ --text-color : red ;
1138+ }
1139+ p {
1140+ color : var (--text-color );
1141+ }
1142+ ```
1143+
1144+ ```css
1145+ p {
1146+ color : red !important ;
1147+ }
1148+ #tagId {
1149+ color : blue ;
1150+ }
1151+ ```
1152+
1153+ ** ⚝ ; [Try this example on CodeSandbox ](https://codesandbox.io/s/css-text-coloring-4qyf4d ?file=/src/styles.css )**
1154+
1155+ </details >
1156+
11311157<div align="right">
11321158 <b > <a href="#" > ↥ back to top</a > </b >
11331159</div >
You can’t perform that action at this time.
0 commit comments