Style list of element and skip first child - HTML CSS CSS Selector

HTML CSS examples for CSS Selector:element not immediately sibling

Description

Style list of element and skip first child

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <style>
p~p {
   background:Chartreuse;
}
</style> <!--from  ww w.  j  a v a 2s .com-->
 </head> 
 <body> 
  <h1>This is a heading</h1> 
  <p>The first paragraph.</p> 
  <p>The second paragraph.</p> 
  <p>The third paragraph.</p> 
  <p>The fourth paragraph.</p>  
 </body>
</html>

Related Tutorials