Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Close cross CSS3
.pre-header .close{
position: absolute;
top: 25px;
right: 5px;
width: 30px;
height: 30px;
cursor: pointer;
}
.pre-header .close .cross{
background: #FFF;
height: 21px;
position: relative;
width: 2px;
display: block;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
-ms-border-radius: 5px;
-o-border-radius: 5px;
border-radius: 5px;
margin: 5px 12px;
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
-o-transform: rotate(45deg);
-ms-transform: rotate(45deg);
transform: rotate(45deg);
}
.pre-header .close .cross::after {
background: #FFF;
content: "";
height: 2px;
left: -9px;
position: absolute;
top: 9px;
width: 21px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
-ms-border-radius: 5px;
-o-border-radius: 5px;
border-radius: 5px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.