I try to use the right start (‘.’ or no ‘.’) for creating a new selector, yet, I feel I make the wrong choice more than 50% of the time!
So, my question: how does one know if a dot is used or not?
Thanks for the thoughts.
I try to use the right start (‘.’ or no ‘.’) for creating a new selector, yet, I feel I make the wrong choice more than 50% of the time!
So, my question: how does one know if a dot is used or not?
Thanks for the thoughts.
In CSS, that is the “class” selector. It selects an element by class name.
.something {...}
Will only select html elements that include class="something"
.
So simple! Much of what we do, I view or think this is going to be a hard lesson and I confuse my self.
Thanks for your reply!
Searching for an answer is often harder work than understanding the answer. You got this!
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.