Bootstrap 4 new grid spaces

I am using bootstrap 4 grid.

my grid has 3 columns and each column is key. This is a nested grid.

when the key or value has more words then it comes to a new line, my problem is how can I reduce the space between these lines.

I wish I had no space or less space where I was showing red lines

enter image description here

<!DOCTYPE html>
<html>

<head>
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" integrity="sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKkoFVhFQhNUwEyJ" crossorigin="anonymous">
    <script src="https://code.jquery.com/jquery-3.1.1.slim.min.js" integrity="sha384-A7FZj7v+d/sdmMqp/nOQwliLvUsJfDHW+k9Omg/a/EheAdgtzNs3hpfag6Ed950n" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js" integrity="sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb" crossorigin="anonymous"></script>
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/js/bootstrap.min.js" integrity="sha384-vBWWzlZJ8ea9aCX4pEW3rVHjgjt7zpkNpZk+02D9phzyeVkE+jo0ieGizqPLForn" crossorigin="anonymous"></script>
</head>

<body>
    <div class="container">
        <div class="row">
            <div class="col-4">
                <div class="row">
                    <div class="col-6 "><strong>Customer Name</strong></div>
                    <div class="col-6 ">smith</div>
                </div>
                <div class="row">
                    <div class="col-6 "><strong>Company</strong></div>
                    <div class="col-6 ">facebook</div>
                </div>
                <div class="row">
                    <div class="col-6 "><strong>header</strong></div>
                    <div class="col-6 ">value</div>
                </div>
            </div>
            <div class="col-4">
                <div class="row">
                    <div class="col-6 "><strong>Customer Name</strong></div>
                    <div class="col-6 ">smith abcdefg xyz</div>
                </div>
                <div class="row">
                    <div class="col-6 "><strong>Company</strong></div>
                    <div class="col-6 ">This can be very long company 
                                                            name</div>
                </div>
                <div class="row">
                    <div class="col-6 "><strong>header</strong></div>
                    <div class="col-6 ">value 11111</div>
                </div>
            </div>
            <div class="col-4">
                <div class="row">
                    <div class="col-6 "><strong>Customer Name</strong></div>
                    <div class="col-6 ">dave</div>
                </div>
                <div class="row">
                    <div class="col-6 "><strong>Company</strong></div>
                    <div class="col-6 ">Google</div>
                </div>
                <div class="row">
                    <div class="col-6 "><strong>header</strong></div>
                    <div class="col-6 ">value 11111</div>
                </div>
            </div>
        </div>
    </div>
</body>
</html>

      

plunker for this problem

https://plnkr.co/edit/TecPEUgj7YsgnrGVZytO?p=preview

+3


source to share


1 answer


The default Bootstrap 4 string 1.5

. Add CSS to override it. For example, it would damage him everywhere.



body {
    line-height: 1;
}

      

+2


source







All Articles