Term
Element or Group Selector |
|
Definition
p {
text-align: right;
color: red;
}
|
|
|
Term
|
Definition
#box{
width : 250px;
height: 250px;
} |
|
|
Term
|
Definition
.center{
text-align: center;
} |
|
|
Term
|
Definition
input[type="checkbox"] {
color: purple;
} |
|
|
Term
|
Definition
div h2 {
background-color: green;
} |
|
|
Term
|
Definition
div > h1 {
background-color: green;
} |
|
|
Term
Adjacent and general sibling selectors |
|
Definition
div + p {
background-color: red;
} |
|
|
Term
|
Definition
* {
text-align: center;
color: red;
font-size: 30px;
}
OR
div * {
background-color: red;
} |
|
|
Term
|
Definition
button:hover {
color: blue;
} |
|
|
Term
|
Definition
p::first-line {
color: #ff0000;
font-variant: small-caps;
} |
|
|
Term
|
Definition
li:nth-of-type(3) {
color: red;
} |
|
|
Term
|
Definition
p:nth-child(3) {
background: yellow;
} |
|
|