Jump to content

Mass Selectors?


Renegade605

Recommended Posts

So I was wondering if there is a way to put CSS selectors in sort of a block format for readability and ease of typing. Example:Instead of:

td.user span, td.user acronym, td.user div { background-color: green; }

Use:

td.user { span, acronym, div { background-color: green; } }

Link to comment
Share on other sites

Don't think so. Typing should be the least of your worries, anyway. But their are tricks for neatness, e.g.:

td.user {	background-color: green;}		td.user span {				color: #faa;		}		td.user acronym {				color: #afa;		}		td.user div {				color: #aaf;		}td.other {	background-color: red;}

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...