Quote from
Gaev on April 28, 2020, 2:57 pm
asmat
Try this in Project >>> Properties >>> Styles ...
.test {
background-color:red;
}
.box-error {
background-color:blue;
}
.box-warning {
background-color:blue;
}
Since you have specified classes for your boxes as test, box-error and box-warning, you associate properties for these classes by specifying a dot before the same name.
If you wanted these properties to only apply to html elements of the type div with a class of test, you would specify div.test instead of .test
If you wanted these properties to only apply to elements with an id of (say) Container1, you would specify #Container1
For a more detailed understanding of css selectors, visit https://www.w3schools.com/css/css_selectors.asp
asmat
Try this in Project >>> Properties >>> Styles ...
.test {
background-color:red;
}
.box-error {
background-color:blue;
}
.box-warning {
background-color:blue;
}
Since you have specified classes for your boxes as test, box-error and box-warning, you associate properties for these classes by specifying a dot before the same name.
If you wanted these properties to only apply to html elements of the type div with a class of test, you would specify div.test instead of .test
If you wanted these properties to only apply to elements with an id of (say) Container1, you would specify #Container1
For a more detailed understanding of css selectors, visit https://www.w3schools.com/css/css_selectors.asp