php - Two buttons in one line -


how can put buttons in 1 line?

<form method="post">     <button type="submit" name="render_button" class='btn btn-block btn-primary' style="width:100px;height:30px;" > render </button>      <button type="submit" name="check" class='btn btn-block btn-primary' style="width:100px;height:30px;" > render2 </button> </form> 

if uses bootstrap, i'm guessing btn btn-primary tags, add display: inline-block; each style tag:

note: may have 0 out margin-top on second button, i'll add well.

<form method="post">         <button type="submit" name="render_button" class='btn btn-block btn-primary' style="width:100px;height:30px;display:inline-block;" > render </button>          <button type="submit" name="check" class='btn btn-block btn-primary' style="width:100px;height:30px;display:inline-block;margin-top:0;" > render2 </button> </form> 

Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -