php - Space between two buttons mobile site -


i have problem buttons when site switch on mobile version

html is:

<p style="text-align: right;"> <a class="button btn-primary" href="index.php/reprogrammation/193-bmw"> retour "choix de la marque" </a> </p>  <p style="text-align: center;"> <a class="button btn-primary" href="#">2005 - e8x</a>      <a class="button btn-primary" href="#">2007 - e8x</a>   <a class="button btn-primary" href="#">2011 - f2x</a> </p>  <p><img style="float: right;" src="images/marques/bmw/serie1.png" alt="" width="400" height="150" /></p> 

css is:

.btn-primary {     background: transparent none repeat scroll 0% 0%;     border: 2px solid #c01c32;     border-radius: 20px;     font-family: "montserrat",sans-serif;     font-size: 13px;     text-transform: uppercase;     padding: 8px 24px; 

here 2 screenshots:

pc version pc version

mobile version mobile version

can please tell me how put space between buttons

.btn-primary {     background: transparent none repeat scroll 0% 0%;     border: 2px solid #c01c32;     border-radius: 20px;     font-family: "montserrat",sans-serif;     font-size: 13px;     text-transform: uppercase;     display: inline-block;     margin:10px;     padding: 8px 24px; } 

i suggest using display inline-block achieve desired affect, adjust preference.


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -