How to reduce size of buttons in mdbootstrap?

stone rock

I want to reduce default size of button but only the font size reduces. I want to reduce font size and button size in proportion.

I tried to reduce font button then the size was not in proportion to font.

Reference link: https://mdbootstrap.com/components/buttons/

Code:

HTML:

<div class="standings">
    <div class="standingstitle">
        <h4>Teams Standings</h4>
        <button type="button" class="btn btn-danger">See all stats</button> 
    </div>
</div>

CSS:

.btn-danger{
    font-size: 6px;
    width: 25px;
    height: 30px;
}

Screenshot: (default size of button):

enter image description here

After trying above code gave me:

enter image description here

Aryan Twanju

You need to adjust the padding property in the default btn selector. Try this code.

.btn {
    padding: .4rem 1.5rem;
}

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related