Is there a way to write css so it would select a div above a selector you already known. For example.
#modal .container .login{
//style
}
so the above code will look for an ID of modal > classname of container > classname of login. And style the .login. Now is is possible to have it go the reverse. So style the #modal only if it has a child of .login and .container
Thanks