Bootstrap 4.0 -How to remove padding below of an element? -
recently, experiment around bootstrap (ver 4.0). got minor issues off position vertical alignments. when using google chrome elements inspections, found out there paddings (highlighted oranges shown below) below total amount:
the code are:
<div class="input-group w-25 float-right"> <label for="number">total amount: </label> <span class="input-group-addon">$</span> <input type="number" class="form-control" aria-label="amount"> </div>
and other 1 this: there paddings below $12.00 kg , blue button "buy me!"
the elements of footer div seems off vertical alignment:
when inspect elements using google elements, found out there paddings: below $12.00 kg , blue button "buy me!
the code these
<div class="card-footer border-success"> <h6 class="card-subtitle mb-2 text-muted">$12.00/kg </h6> <div class="input-group"> <input type="text" class="form-control" placeholder="1" aria-label="unit" aria-describedby="basic-addon2"> <span class="input-group-addon" id="basic-addon2">units</span> <a href="#" class="btn btn-primary">buy me!</a> </div> </div>
so , question there ways remove paddings in bottom make elements inside div aligned each other?
Comments
Post a Comment