You should use an element <button>, this gives you more control over what happens to its contents:
<button class="wrong">
<span>this pushes text to the left, ignoring padding</span>
</button>
And styles:
.wrong {
width: 100px;
overflow: hidden;
}
.wrong span {
margin-left:30px;
text-align: left;
white-space: nowrap;
}
An example that should work in all browsers: http://jsfiddle.net/p8mg8/1/
source
share