0

Trying to familiarize myself with Bootstrap and its grid system. Below shows my attempt at creating a footer, I wouldn't like to use all 12 cols, at the moment it looks fine - but for some reason I am unable to center the list items within the div. I've tried playing with Google dev tools but can't really find the reason why.

.wrapper{
    width:80%;
    margin:0 auto;
}
.footer{
    margin:0 auto;
    text-align:center;
}

HTML

  <div class="row footer">
            <div class="wrapper clearfix">
                <div class="col-md-2 ">
                    <ul>
                        <li>Bob</li>
                        <li>Bob</li>
                        <li>Bob</li>
                        <li>Bob</li>
                        <li>Bob</li>
                    </ul>
                </div>
                <div class="col-md-2">
                    <ul>
                        <li>Bob</li>
                        <li>Bob</li>
                        <li>Bob</li>
                        <li>Bob</li>
                        <li>Bob</li>
                    </ul>
                </div>
                <div class="col-md-2">
                    <ul>
                        <li>Bob</li>
                        <li>Bob</li>
                        <li>Bob</li>
                        <li>Bob</li>
                        <li>Bob</li>
                    </ul>
                </div>
                <div class="col-md-2">
                    <ul>
                        <li>Bob</li>
                        <li>Bob</li>
                        <li>Bob</li>
                        <li>Bob</li>
                        <li>Bob</li>
                    </ul>
                </div>
            </div>
        </div>
J.Doe
  • 1

1 Answers1

0

use

.footer ul {
  display: grid;
  justify-content: center;
}

demo