As you can see in the screenshot below, the links do not align at the bottom of the div . How to align buttons for change , delete , add cart at the bottom of the div . Note. I do not use a table .
.bottomaligned {position:absolute; bottom:0; margin-bottom:7px; margin:7px;} .fixedheight { height: 208px; position:relative; border:1px solid; margin:7px;}
The corresponding bits from the template displaying the page whose screenshot is shown below are inserted here. Note that using css class = "bottom" still doesn't align links. Even when I added width: 300px; to the css .fixedheight class, they haven't aligned yet.
<div class="row"> <% @products.each do |product| %> <div class="col-lg-3 col-sm-4 col-6 fixedheight "> <div class="bottomaligned"> <%= link_to 'edit', edit_product_path(product), class: "btn btn-danger" %> <%= button_to "Delete", product, data: {confirm: 'Are u sure?'}, method: :delete, class: "btn btn-danger" %> <%= button_to "Add to cart", order_items_path(product_id: product) %> </div> <hr> </div> <% end %> </div>
Screenshot: 
css twitter-bootstrap twitter-bootstrap-3 bootstrap-sass
brg
source share