B
B
blazer052018-12-18 14:04:34
css
blazer05, 2018-12-18 14:04:34

How to align the cart button?

Hello.
The template has something like this

<div class="product-action">
  <div class="button-group">
    <div class="product-button-2">
      <a href="#" type="submit" data-toggle="tooltip" title="Add Cart"><i class="fa fa-shopping-cart"></i></a>
      <a href="#" data-toggle="tooltip" title="Wishlist"><i class="fa fa-heart-o"></i></a>
      <a href="#" data-toggle="tooltip" title="Compare"><i class="fa fa-signal"></i></a>
    </div>
  </div>
</div>

I need to wrap the Add Cart button in this form to transfer data to the cart.
<form class="product-button" onsubmit="return addToCart(event)">
  <input type="hidden" name="product" value="{{ sale.slug }}">
  <button type="submit" data-toggle="tooltip" title="Add Cart"><i class="fa fa-shopping-cart"></i></button>
</form>

as a result, I get as in the picture below
5c18d32f72050865354403.png
, but it should be like this,
5c18d343e5828963579302.png
how to make this small button for adding goods to the cart so that it does not break the design?
You can see here at the bottom of the page there is a block SALES BY CATEGORY in it this problem.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question