I am using LESS (CSS) trying to align a span (button text) inside a div (button). The span is centrally aligned horizontally but is top aligned vertically. I would also like the span object to adjust itself to the text size automatically.
Here's the LESS code:
.button(@color:@crimson-red) {
border-radius: @small-border-radius;
border-style: none;
background-color: @color;
text-align: center;
display: inline-block;
}
.button-font {
vertical-align: middle;
overflow: auto;
font-family: "Helvetica Neue", sans-serif;
color: @off-white;
font-weight: bold;
font-size: 10pt;
position: relative;
}
.blue-button {
.button(@blue);
}