Skip to content

Instantly share code, notes, and snippets.

@jensgro
Forked from anonymous/dabblet.css
Last active August 28, 2015 14:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jensgro/fc826b2d6254186dd1d7 to your computer and use it in GitHub Desktop.
Save jensgro/fc826b2d6254186dd1d7 to your computer and use it in GitHub Desktop.
keyboard order and flexbox ordering
/**
* keyboard order and flexbox ordering
*/
nav {
display: flex;
padding: 20px;
}
a:nth-of-type(2) {
order: -1;
}
a {
display: inline-block;
text-decoration: none;
padding: 10px;
background: #a20000;
color: #fff;
margin-right: 10px;
transition: all 0.3s;
}
a:hover, a:focus {
background-color: #454545;
padding: 10px 20px;
transition: all 0.3s;
position: relative;
z-index: 10;
margin-left: -10px;
}
<!-- content to be placed inside <body>…</body> -->
<nav>
<a href="http://vasilis.nl">Link 1</a>
<a href="http://vasilis.nl">Link 2</a>
<a href="http://vasilis.nl">Link 3</a>
</nav>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment