What is the use of contextual selector?

Questions by JohnMathew   answers by JohnMathew

Showing Answers 1 - 3 of 3 Answers

kpaccess

  • Jun 21st, 2008
 

Contextual selects are merely strings of two or more selectors seperated by white space. These selectors can be assigned normal properties ,and due to the rules of cascading order, they will take precedence over simple selectors. For example , the contextual selectors in

p em {background: blue} is p em.

This rule says that emphasized text within a paragraph should have blue background.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions