htmlcsssharetribe

Multiple buttons in one form


I have 3 buttons in one form and I'd like to change the order of the buttons - display the last one as a first.

I'm just trying to customize a look of a website made by using marketplace builder Sharetribe. Customization options are limited, I'm able only to add custom scripts.

Here are the website and buttons on a listing page. https://rentim.sharetribe.com/en/listings/841589-karl-plumber

<form id="booking-dates" action="/en/transactions/new?listing_id=841589" accept-charset="UTF-8" method="get" novalidate="novalidate">
  <input name="utf8" type="hidden" value="✓">
  <div class="quantity-wrapper input-group clearfix">
    <div class="quantity-label-wrapper">
      <label class="quantity-label" for="quantity">Number of hours:</label>
      <input type="hidden" name="listing_id" id="listing_id" value="841589">
      <button class="enabled-book-button">
          <div class="content">Avaliablity and reservation</div>        </button>
      <button class="enabled-book-button">
          <div class="content">Buy hourly work</div>
       </button>
      <button class="enabled-book-button">
        <div class="content">Request</div></button>
</form>


Solution

  • You can try setting the two buttons position to relative and then move the elements:

    Request button:

    {
      position: relative;
      top: -132px;
    }
    

    Availability and reservation button:

    {
      position: relative;
      top: 103px;
    }
    

    OR using flex!

    #booking-dates { // form element
      display: flex;
      flex-direction: column;
    }
    
    .enabled-book-button { // request button
      order: -1;
    }