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:

enter image description here

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: enter image description here

when inspect elements using google elements, found out there paddings: below $12.00 kg , blue button "buy me!

enter image description here

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?

just use bootstrap 4 spacing utils..

pb-0 = padding-bottom: 0;

or

mb-0 = margin-bottom: 0;


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -