selecting adjacent elements in CSS

KhIrfan

New Member
In CSS,Is it possible to match the elements which have a certain property followed by an element which has another property, ie.Let's consider \[code\]<div my-custom-attribute="0"></div><div my-custom-attribute="1"></div>\[/code\]I want to select all elements which have my-custom-attribute equal 0 that are followed by elements which have my-custom-attribute equals 1
 
Back
Top