Skip to content

Instantly share code, notes, and snippets.

@jennschiffer
Last active August 29, 2015 14:22
Show Gist options
  • Save jennschiffer/90774d28af999f086bd0 to your computer and use it in GitHub Desktop.
Save jennschiffer/90774d28af999f086bd0 to your computer and use it in GitHub Desktop.
li hover borders aka super hacky css border hover bullshit for brain
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
* { margin: 0; padding: 0; }
ul { margin: 50px; }
li { display: block; width: 300px; padding: 10px; border: 2px solid orange; border-left: 0; border-right: 0; }
li:first-child { border-top-color: transparent; }
li:last-child { border-bottom-color: transparent; }
li:hover { border-color: cyan; }
/* super hacky shit lol */
li { position: relative; margin-top: -2px; }
li:hover { z-index: 5; }
</style>
</head>
<body>
<ul>
<li>this</li>
<li>is</li>
<li>bullshit</li>
<li>lol</li>
</ul>
</body>
</html>
@brianloveswords
Copy link

fuck you github

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment