Struggling with an issue while trying to create a top bar. It works perfectly on desktop mode, but the problem arises when viewing it on mobile - it's not responsive. I need help making it responsive. Can anyone fix this for me?
This is how my mobile view currently looks:
https://i.sstatic.net/q9iiV.png
I want it to look like this in the mobile view:
https://i.sstatic.net/uIxm3.png
header.html
This is the page where I've written all my code for the top bar.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css"
integrity="sha384-AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="d5b7babaa1a6a1a7b4a595e1fbe3fbe5">[email protected]</a>/dist/css/bootstrap.min.css"
integrity="sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0nPEzvF6L/Z6nronJ3oUOFUFpCjEUQouq2+l" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="26564956564354084c5566170817100817">[email protected]</a>/dist/umd/popper.min.js"
integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="c0a2afafb4b3b4b2a1b080f4eef6eef0">[email protected]</a>/dist/js/bootstrap.min.js"
integrity="sha384-+YQ4JLhjyBLPDQt//I+STsc9iw4uQqACwlvpslubQzn4u2UU2UFM80nGisd026JF"
crossorigin="anonymous"></script>
<link rel="stylesheet" href="style.css">
<title>Header</title>
</head>
<body>
<div class="container-fluid bg-primary">
<div class="row top-bar">
<div class="col p-3">
<span class="text-white">
Offer Zone Top Deal & Discounts <i class="fas fa-shopping-cart"></i>
</span>
</div>
<div class="col "></div>
<span class="text-white p-3">
<i class="fas fa-map-marker"></i> Select Location
</span>
<span class="text-white p-3">
|
</span>
<span class="text-white p-3">
<i class="fas fa-truck-moving"></i> Track Order
</span>
<span class="text-white p-3">
|
</span>
<span class="text-white p-3">
<i class="fas fa-phone-alt"></i> 012 345 6789
</span>
<span class="text-white p-3">
|
</span>
<span class="text-white p-3">
<i class="fas fa-shopping-cart"></i> Log In
</span>
<span class="text-white p-3">
|
</span>
<span class="text-white p-3">
<i class="fas fa-shopping-cart"></i> Register
</span>
</div>
</div>
</body>
</html>