css syntax a:hover on element inside id and class -
i want apply same style to
a, a:hover
of elements residing inside id, class , element. what's valid , effective syntax?
example:
#leftmenu .shortcuts ul li a, a:hover { text-decoration: none; }
regards, //t
css isn't smart, you'll have explicitly write out first part, again. @sdleihssirhc
noted, can omit li
, ul
elements assumed contain li
s, selector still work:
#leftmenu .shortcuts ul a, #leftmenu .shortcuts ul a:hover { text-decoration: none; }
i'd consider giving ul
id
, condense css considerably:
#lm_ul a, #lm_ul a:hover { text-decoration: none; }
Comments
Post a Comment