0

I just wanted to know whether we can use tree structured statements in CSS like:

a:hover + ul > li{
   .....
} 

Can I use these in CSS?

BoltClock
  • 700,868
  • 160
  • 1,392
  • 1,356
Akash V
  • 3
  • 3
  • Yes. Yes you can. Any reason to assume you can't? Or do you have restrictions like "it has to run in IE6"? – Mr Lister Jun 24 '15 at 15:58
  • have you tried it and it didn't work? – Fabrizio Calderan Jun 24 '15 at 15:59
  • I tried the same code on the "Navigation Bar menu" example found on w3 site ( link)(http://www.w3schools.com/css/tryit.asp?filename=trycss_navbar_horizontal_float_advanced). Please visit this and try the same thing and reply me if it works – Akash V Jun 24 '15 at 16:01
  • What is the matter? Can't you try it yourself? You refuse to visit W3Schools? You refuse to believe the results you see on the W3Schools site? You're using a very old browser? Javascript disabled, overactive ad blocker, typos in the css you tried, specificity issues? – Mr Lister Jun 24 '15 at 21:21

0 Answers0