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 lis, 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

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -