Last active
April 13, 2017 17:41
-
-
Save juniorcesarabreu/2685cc82fc1114a02d336f5d9c9206a2 to your computer and use it in GitHub Desktop.
Adição de uma seta usando ::before em uma mensagem
This file contains 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
<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> |
This file contains 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
.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