Hello. It is impossible for some reason to set a fixed width for the button

a.buttom1 { background-color: #9cbf3f; padding: 13px; border-radius: 30px 30px 30px 30px; color: #fff; margin: 20px; width: 500px; } 
 <a href="/" class="buttom1">Test</a> 

What am I doing no so?

    1 answer 1

    add her

      display: block; 

    do not specify a link for another width

    • Then the problem turns out. I need two buttons such on one line, and with display: block; don't do that - iKey
    • 2
      then display: inline-block; - stackanon
    • one
      then add another float: left; and they will be abreast, and under them is a block with clearfix (with the clear: both style) - Boris Runs
    • @stackanon for sure. thanks - iKey