Created
April 7, 2018 06:35
-
-
Save dwarjie/3e7edf1d122b6062b099fd719295e713 to your computer and use it in GitHub Desktop.
Here is the code for the series that I'm going (CSS Icons). You can use it on your code.
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>X-Icon</title> | |
| <link rel="stylesheet" type="text/css" href="main.css"> | |
| </head> | |
| <body> | |
| <div class="x-icon"></div> | |
| </body> | |
| </html> |
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
| * { | |
| margin: 0px; | |
| padding: 0px; | |
| border: 0px; | |
| } | |
| .x-icon { | |
| margin-left: 20px; | |
| margin-top: 50px; | |
| width: 30px; | |
| height: 2px; | |
| background-color: black; | |
| cursor: pointer; | |
| transform: rotate(45deg); | |
| -webkit-transform: rotate(45deg); | |
| -moz-transform: rotate(45deg); | |
| } | |
| .x-icon:after { | |
| content: ''; | |
| position: absolute; | |
| width: 30px; | |
| height: 2px; | |
| background-color: black; | |
| transform: rotate(90deg); | |
| -webkit-transform: rotate(90deg); | |
| -moz-transform: rotate(90deg); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment