Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] How to make a 80% input button?

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #196874
    knowledgenotebook
    Participant

    Hi,

    We have this default input button,
    <input type="button" value="Do Stuff" onclick="{action}">
    question, how can I use style to make the button size (height and weight) to be 80% of its default size (so that it’s a bit smaller for real estate sake, and also, the text size of “Do Stuff” as well (80%) and centered?

    Thanks.

    #196875
    Senff
    Participant

    You can use something like transform: scaleX(0.8) scaleY(0.8);:

    http://codepen.io/senff/pen/YPvWXW

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.