The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS #id.class or #id .class Re: #id.class or #id .class


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:


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.