Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS same style for a:link a:visited a:hover a:active, really have to write it all out 4 times

Ho ho,

When working with CSS. If the CSS style is the same for a:link a:visited a:hover a:active does one really have to write it out for times. Working with a custom link.

.DT_compare a:link {
    font-family:"Lucida Grande", Arial, sans-serif;
    font-size:11px;
    line-height:14px;
    font-weight:normal;
    font-style:normal;
    color:#EEE;
    text-align:center;
}

Any shortcuts?

Marvellous

like image 650
RIK Avatar asked Apr 06 '11 14:04

RIK


1 Answers

I don't think you can do any shorter than:

.DT_compare a:link,
.DT_compare a:visited,
.DT_compare a:hover,
.DT_compare a:active, {
    font-family:"Lucida Grande", Arial, sans-serif;font-size:11px;line-height:14px;font-weight:normal;font-style:normal;color:#EEE;text-align:center; }
like image 122
whoughton Avatar answered Sep 20 '22 17:09

whoughton