Renegade605 Posted April 24, 2009 Share Posted April 24, 2009 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 More sharing options...
jeffman Posted April 24, 2009 Share Posted April 24, 2009 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.