Was wondering if anyone had a solution with what I am trying to achieve if at all possible. I've been playing with a drop down that opens onclick with pure css. What I am trying to accomplish to have the dropdown close automatically when pointer is not on the dropdown menu. I know this is possible with jQuery but get this, I am trying to accomplish this in pure css.
My code is below which is pure css which again works onclick to open the 2nd tab. Again, I am trying to achieve an automatic close behavior such as with a hover but not by using the hover class or javascript.
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame Remove this if you use the .htaccess --> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<!-- All JavaScript at the bottom, except for Modernizr which enables HTML5 elements & feature detects --> <script src="js/libs/modernizr-1.7.min.js"></script>
I have a demo of this. Unless there is some css3 thing that I am unaware of this is not possible. In mine, as well as any others you'll find, there is an X you have to click to break the target/focus.
Thanks Eric for the confirmation. I've been trying to figure this out for almost 2 weeks now. Looked into all the CSS3 Transitions to see if possible but was unsuccessful. Like you, unless there was some type of CSS trick I was unaware of, I thought I'd find someone here that would know. Thanks and guess it's back to using jQuery which isn't bad. Just though maybe I'd get lucky and find something new : )
Was wondering if anyone had a solution with what I am trying to achieve if at all possible. I've been playing with a drop down that opens onclick with pure css. What I am trying to accomplish to have the dropdown close automatically when pointer is not on the dropdown menu. I know this is possible with jQuery but get this, I am trying to accomplish this in pure css.
My code is below which is pure css which again works onclick to open the 2nd tab. Again, I am trying to achieve an automatic close behavior such as with a hover but not by using the hover class or javascript.