Skip to content

Instantly share code, notes, and snippets.

@juniorcesarabreu
Last active April 13, 2017 17:41
Show Gist options
  • Save juniorcesarabreu/2685cc82fc1114a02d336f5d9c9206a2 to your computer and use it in GitHub Desktop.
Save juniorcesarabreu/2685cc82fc1114a02d336f5d9c9206a2 to your computer and use it in GitHub Desktop.
Adição de uma seta usando ::before em uma mensagem
<p class='help'>
Preencha o campo com um e-mail válido, assim poderemos entrar em
contato com você para informar o resultado do nosso concurso.
</p>
.help {
background-color: #F1EFE6;
border: 1px solid #D3CDAE;
font-size: 0.9em;
padding: 10px;
position: relative;
width: 300px;
}
.help::before {
border-color: transparent #D3CDAE transparent transparent;
border-style: solid;
border-width: 14px;
content: "";
left: -28px;
margin-top: -14px;
position: absolute;
top: 50%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment