Home › Forums › CSS › How to align buttons horizontally? › Reply To: How to align buttons horizontally?
September 29, 2014 at 8:42 pm
#185017
Participant
Yes, but problem is the buttons are each wrapped in separate div
s. They need to be adjacent (as they are in your codepen example) for this to work.
<!-- effortless -->
<input type=reset><input type=submit>
<!-- difficult, impractical -->
<div>
<input type=reset>
<span></span>
<div class=clearer></div>
</div>
<div>
<input type=submit>
<span></span>
<div class=clearer></div>
</div>
Do you have control of the markup? It looks like it is programatically generated (e.g., by web publishing software or a plugin of some sort).