简体   繁体   中英

Bootstrap 5 column not working as expected with my design :(

Working on bootstrap where I need to develop my footer exactly as below

在此处输入图片说明

Here is my part of HTML code

<footer class="footer">
<div class="row">
    <div class="col-lg-2 col-md-2 col-sm-2 col-xs-2 footer-Darkerblue">
        <div class="text-center">
            <ul class="footer-ul">
                <li class="footer-headtext text-uppercase">
                    destination
                </li>
                <li class="footer-Kilomet">
                    6.8 Kms
                </li>
                <li class="footer-min">
                    25 Min away
                </li>
            </ul>
        </div>
    </div>
    <div class="col-lg-2 col-md-2 col-sm-2 col-xs-2 footer-Darkenblue">
        <ul class="footer-ul">
            <li>
                Status
            </li>
            <li>
                In Transit
            </li>                       
        </ul>
    </div>

Here is the fiddle link

Kindly please guide me where i am getting wrong i am not getting the exact output

Ok, took a look at your code, and saw that you had a few closing tags out of place.

You had:

<div class="footer-left-border"></div>

Simply move the closing tag to below your data.

<div class="col-lg-2 col-md-2 col-sm-2 col-xs-2">
  <div class="footer-left-border">
  <ul class="footer-ul">
    <li class="footer-headtext text-uppercase">
      DATE
    </li>
  </ul>
  <ul class="footer-ul list-inline footer-text-date">
    <li>
      <em class="fa fa-calendar"></em> 25 Dec, 2015
    </li>
    <li>
      <em class="fa fa-clock-o"></em> 16:30
    </li>
  </ul>
  </div>
</div>

Here's a JSFiddle Fork of your code, showing this.

Enjoy!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM