-2

What is the way of getting parent element using pure CSS. Am using VS 2013, So it must be css3. I have seen in google about has() and < selectors. Unfortunately they do not work.

  • The fact that they do not work should be a clue. Also, your version of Visual Studio has absolutely no bearing on what level of CSS, or what CSS standard at all, you can use - the statement "[I am] using VS 2013, So it must be css3." is simply absurd. – BoltClock Feb 09 '16 at 06:54

1 Answers1

-3

There is parent selector in css4 $E > F (last in table) where $E is parent of F. Unfortunately there is no support for it (only 26% for whole css4).

Justinas
  • 34,232
  • 3
  • 56
  • 78
  • 1
    The $ syntax has been gone for years. You're quoting the FPWD as canon. [Don't ever do that.](https://www.w3.org/TR/2011/WD-selectors4-20110929/#status) (And what is "whole css4" even supposed to mean?) – BoltClock Feb 09 '16 at 06:57