Created
July 1, 2017 08:25
-
-
Save yano3nora/1884f61b7495176ce1018ec555125cda to your computer and use it in GitHub Desktop.
[css: triangle without fontawesome] #css
This file contains 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
/** | |
* fontawesome入れてない状態で戻るボタンだけで使いたいときとか。 | |
* CSSで三角形作るやつの応用。 | |
*/ | |
a:after { | |
content: ""; | |
display: block; | |
position: absolute; | |
top: 50%; | |
right: 5%; | |
width: 6px; | |
height: 6px; | |
margin: -4px 0 0 0; | |
border-top: solid 2px #000; | |
border-right: solid 2px #000; | |
-webkit-transform: rotate(45deg); | |
transform: rotate(45deg); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment