Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS How to align buttons horizontally? Reply To: How to align buttons horizontally?

#185017
__
Participant

Yes, but problem is the buttons are each wrapped in separate divs. 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).