I'd like to ask you for a little help. Well, I have to create a very simple navigation but I got a problem because I can't rewrite this code to make nav works without checkbox, it's very important - it shouldn't based on checkbox.
Ok, so first of all here is version based on checkboxes: http://codepen.io/anon/pen/dPaeZE
As you can see when user clicks TEST1 or TEST2 it expands list.
I want to make something similar to that but without checkboxes as I mentioned before, so here is my second codepen: http://codepen.io/anon/pen/azXGEQ
I tried this code:
.menu {
display: none;
}
/* show menu */
.nav-header:focus + .menu{
display: block;
}
But it doesn't work, when I click on TEST1 or TEST2 ul doesn't show. Something here is wrong but I don't know what exactly. :P
Ok, so that's all hope you could check it and help me a bit.