Button not same width HTML & CSS -


i have issue buttons on website, not same width, have tried setting width no result.

css

.menulist{     text-align: center;     margin-top: 2em; } .litem{     display: inline-block;     margin-left: 1em;     margin-right: 1em;     max-height: 1em; } .btn{     text-decoration: none;     color: white;     margin: 0 auto;     padding: 1em 4em 1em 4em;     font-family: 'raleway';     border: 2px solid white; } 

html

<ul class="menulist">     <li class="litem"><a class="btn" href="#">cooking</a></li>     <li class="litem"><a class="btn" href="#">technique</a></li> </ul> 

css changes :

.menulist{     text-align: center;     margin-top: 2em; } .litem{     display: inline-block;     margin-left: 1em;     margin-right: 1em;     line-height: 2.4em;     max-width:184px;     width:184px;     border: 2px solid white; } .btn{     text-decoration: none;     color: white;     margin: 0 auto;     padding: 1em auto;     font-family: 'raleway'; } 

Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -