Let’s say we have 3 buttons and we want to show them on the same line:
#outer { width:100%; text-align: center; } .inner { display: inline-block; }
<div id="outer"> <div class="inner"><button type="submit" class="msgBtn" onClick="return false;" >Save</button></div> <div class="inner"><button type="submit" class="msgBtn2" onClick="return false;">Publish</button></div> <div class="inner"><button class="msgBtnBack">Back</button></div> </div>