Style sibling selector with a:visited - HTML CSS CSS Selector

HTML CSS examples for CSS Selector:element sibling

Description

Style sibling selector with a:visited

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <title>Lorem ipsum dolor sit amet,</title> 
  <style>
#hidden-element {<!--  w w w .  j a  v a 2s . co  m-->
   display:none;
}

#hidden-element:target {
   display:block;
}
</style> 
 </head> 
 <body> 
  <p> <a href="#hidden-element">Lorem ipsum dolor sit a</a> </p> 
  <div id="hidden-element"> 
   <p>Lorem ipsum dolor si</p> 
  </div>  
 </body>
</html>

Related Tutorials