-
-
Save jensgro/fc826b2d6254186dd1d7 to your computer and use it in GitHub Desktop.
keyboard order and flexbox ordering
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// alert('Hello world!'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"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