Skip to content

Instantly share code, notes, and snippets.

@mrsize
Created June 11, 2021 12:31
Show Gist options
  • Save mrsize/95860d60bb4d091726b78a0df8fda691 to your computer and use it in GitHub Desktop.
Save mrsize/95860d60bb4d091726b78a0df8fda691 to your computer and use it in GitHub Desktop.
E-mail and Phone number antispam CSS
/* E-mail Antispam */
.arobase::before {
content: "\000040";
font-size: inherit !important;
}
.arobase span {
font-size: 1px;
font-size: 0.1px;
text-indent: -999px;
width: 1px;
overflow: hidden;
}
/* Phone Antispam */
span[class^="zero-"]{
font-size:1px;
font-size:0.01rem
}
span[class^="zero-"]::before{
font-size:initial
}
.zero-un::before{
content:"01";
}
.zero-six::before{
content:"06";
}
.zero-sept::before{
content:"07";
}
.zero-huit::before{
content:"08";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment