I'm trying to make a button, which does not% expand, and show the rest of the button.
Here is an example of what I want to do (the button is a simple hover
):
h2:before {
content: 'Testando';
font-family: Arial;
background-color: #ccc;
font-weight: normal;
-webkit-transition:width 0.2s;
transition: width 0.2s;
padding:10px;
width:100px;
float:left;
}
h2:hover:before {
width:200px;
content: 'Testando o botão';
}
But as you can see, in the <h2>
the button rests appear half crooked ...