css direct ancestor selector code example Example: css immediate child .parent>.immediate-child { color: red; }