jacksbackw
Technical User
I have been studying CSS for quite some time now and have a question that perhaps someone can easily answer.
Take the following style for example:
TD#leftside TD {border-bottom: 1px solid #a98763;}
Why have the TD in front of the ID if you are using a descendant selector to target the TD already? Is it's purpose to somehow identify what type of element the ID is associated with?
It seems to work without the preceding TD, so why?
Thanks in advance,
Jackbackw
Take the following style for example:
TD#leftside TD {border-bottom: 1px solid #a98763;}
Why have the TD in front of the ID if you are using a descendant selector to target the TD already? Is it's purpose to somehow identify what type of element the ID is associated with?
It seems to work without the preceding TD, so why?
Thanks in advance,
Jackbackw