What is the use of Indirect Adjacent combinator in CSS3?

Questions by StephenRaj   answers by StephenRaj

Showing Answers 1 - 2 of 2 Answers

umesh

  • Apr 11th, 2014
 

for example
div+p
{
background-color:red;
}

subrata dhal

  • Feb 11th, 2015
 

Adjacent Sibling Selector x+y
1. Adjacent Sibling selector applies CSS styles to elements only if its adjacent to the specified element.
2. To create the Selector a symbol " + " is used between the two selectors.
3. 3. Eg: h1 + p will select only the first

following the

element, all other non-adjacent elements will not be Selected.

  Was this answer useful?  Yes

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