Skip to content

Instantly share code, notes, and snippets.

@dwarjie
Created April 7, 2018 06:35
Show Gist options
  • Select an option

  • Save dwarjie/3e7edf1d122b6062b099fd719295e713 to your computer and use it in GitHub Desktop.

Select an option

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.
<!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>
* {
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