Reputation: 6318
So simple question, how can i select/style a set of links inside a div using one line of code.
for example, say i have a div called ABC, and i wanted to style the a:visited property and give it a white color then id do something like,
#ABC a:visited{ //color:#fff } etc
but i want to style all of the a properties like visited,link,hover etc...in one line as oppose to doing
#ABC a:visited{ //color:#fff }
#ABC a:hover{ //color:#fff }
#ABC a:link{ //color:#fff }
#ABC a:active{ //color:#fff }
because for example, i dont want to style the documents links site wide, only within a certain div and i dont want to write it all out...im aware i could just copy paste but
just wondering.
Upvotes: 0
Views: 912
Reputation: 3165
Multiple CSS selectors
#ABC a:visited, #ABC a:link, #ABC a:active, #ABC a:hover { color: #fff; }
Upvotes: 2