Attribute Selector (beginning)
a[href^="https"] {
| background-image: url(padlock_icon.png);
| background-repeat: no-repeat;
background-position: 0 2px;
padding-left: 20px
used to style an element based on the
beginning characters of one of its
Attributes.
visit COCC
.class1.class2
.name1.name2 {
padding: 20px;
background-color: aqua;
font-family: verdana;
}
multiple html elements with class or a name associated with it can be styled together in one css box.
:root
:root {
--main-color: hotpink;
--pane-padding: 5px 42px
}
Can be used to declare css variables within the html code
::first-letter
::first-letter {
Font-family: monospace;
font-size: x-large;
}
style the first letter of an
element