CSS
2021-8-17 Less than 1 minute
# CSS
# What is a Pseudo-Class and what are some of the most common ones you think you will use?
A Pseudo-Class is a special state of an element.
selector:pseudo-class{
property:value;
}
1
2
3
2
3
I believe some of the most common pseudo-classes we will use will be :hover, :root, and :first-child.
# What is Specificity and how might you use it to your benefit?
Specificity is a tool built into css that determines which rule should be applied first if there are multiple rules. You can benefit from it's use by as you can quickly debug issues you may have.
# What problems do you think you could run into if you over-utilized the !important feature?
Over-utilizing the !important feature can cause console log errors and issues with your code as multiple codes are trying to run at the same time. It is a great feature to use but critical not to overuse it.
# Daily Challenge
Here is the daily challenge for day 2 Cool Site (opens new window)