Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Css button text issue

Tags:

html

css

I have a CSS button for my site which used to be full with the text in the very middle of it, but now the text is at the bottom and the button is smaller. Other people have had access to my root folder to make amendments and i dont know what they've done.

.button
{
    display: inline;
    margin-top: 2em;
    padding: 1em 2em 1em 2em;
    background: #8dc63f;
    letter-spacing: 0.20em;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 0.90em;
    color: #FFF;
}

.button:before
{
}
like image 263
Mike Avatar asked Dec 01 '25 04:12

Mike


1 Answers

try: display: inline-block

That should sort it.

like image 100
Samp Avatar answered Dec 02 '25 17:12

Samp