Home › Forums › CSS › #id.class or #id .class › Re: #id.class or #id .class
November 28, 2010 at 2:04 pm
#71987
jamygolden
Member
I think @zack is incorrect, or I don’t understand what he is saying.
Some text
You can target that with the following CSS selectors:
#example{}
#example.one{}
#example.two{}
#example.one.two{}
.one{}
.two{}
.one.two{}
When there are no spaces, it means target an element that has X class/ID as well as X class/ID.
Note: It is not valid CSS for an element to have more than one ID.
Note: This method of selecting elements isn’t supported by IE6.