Create a CSS selector for an element