The Bootstrap icon is causing some complications

I'm experiencing some issues with my Bootstrap settings as I'm still learning how to use Bootstrap. I attempted to design a button using Bootstrap and wanted to add an icon to it, but unfortunately, I couldn't get it to work. Despite trying numerous tutorials and examples provided on the Bootstrap page, I haven't been successful. Can anyone help me identify where I went wrong? Thank you in advance! :)

Here is the code snippet:

{% load static %}

<body>
    <nav class="navbar navbar-expand-lg navbar-dark bg-dark">
        <div class="container">
        <a class="navbar-brand" href="#">Hey!!!, {{user.username}}</a>
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
          <span class="navbar-toggler-icon"></span>
        </button>

        <div class="collapse navbar-collapse" id="navbarSupportedContent">
          <ul class="navbar-nav ml-auto">
            <li class="nav-item active">
              <a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
            </li>
            <li class="nav-item">
                <a class="nav-link" href="#">Registration</a>
              </li>
              <li class="nav-item">
                <a class="nav-link" href="{% url 'logout' %}">Log Out</a>
              </li>
              <li class="nav-item">
                <a class="nav-link" href="{% url 'login' %}">My Account</a>
              </li>


          </ul>

        </div>
    </div>
    </nav>


    <div class="container bordere" >








<div class="mt-2">
    <a href="{% url 'authuser' %}"> <button class="btn btn-primary my-2 my-sm-0" type="button">Add Items</button></a> 
    <button class="btn btn-primary my-2 my-sm-0 " type="submit"><i class="fas fa-1x fa-search"> </i> View Details</button>
    <button class="btn btn-primary my-2 my-sm-0" type="submit">Download Report</button>
    <button class="btn btn-primary my-2 my-sm-0" type="submit">Email Report</button>
    <button class="btn btn-primary my-2 my-sm-0" type="submit">Create Bill</button>
    <button class="btn btn-primary my-2 my-sm-0" type="submit">Modify Data</button>
    <button type="button" class="btn btn-danger">
        Delete<span class="glyphicon glyphicon-remove-sign"></span>
       </button>

</div>


            <div class="row mb-2 mt-2">
                <div class="col-2 bordere miniheight">
                    clo 1
                </div>
                <div class="col-10 bordere">
                    clo 2
                </div>




            </div>

</div>

<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/fontawesome/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script>




</body>

Consider checking out this working example: https://i.sstatic.net/duoMk.png

Answer №1

Bootstrap 3 removed Glyphicons. If you were referring to version 4, you may have been looking at the wrong documentation. Check here

If you're in need of those icons, you can still access them here, or opt for using FontAwesome.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Challenge of Bootstrap 5 navigation bar not collapsing

Issue with responsive navigation bar not collapsing All necessary libraries already included <div class="collapse navbar-collapse justify-content-end" id="navbarSupportedContent"> <ul class="navbar-nav mb-2 mb-lg-0&qu ...

Issues arise when attempting to center objects within the navbar-nav while in mobile view (collapsed)

After some tweaking with the CSS code provided below, I successfully centered the navbar-nav content within my navbar. Below is the CSS code used: /* @media (min-width:768px) { */ Note this comment .navbar > .container { text-align: center; } .na ...

Mobile Bootstrap4 NavBar Bug Fix

I am currently working on coding a website with Bootstrap. The navbar functions perfectly on desktop, but when accessed via mobile device, the button containing all the links does not work. Here is a picture for a more accurate description Below is my HTM ...

HTML: Determine the Precise Location of a Div Element That is Centered

Imagine I have this image: Is there a way for me to determine the x/y or left/top properties of my canvas if it is centered using the following CSS: #canvas-container { width: 100px; height:100px; margin: 0px auto; } Note ...

Experience the thrill of success with a timed animation using Sweet Alert on the powerful Ionic framework

I'm currently working with the ionic framework to develop a mobile application. I'd like to incorporate Sweet Alert for displaying success messages. You can find Sweet Alert at . My goal is to include a timer in the success message. swal("Good ...

Using Laravel to connect custom fonts

After previously discussing and experimenting with linking custom font files in Laravel, I encountered an issue where the fonts were not displaying correctly on my website. Due to Laravel's router, directly linking to font files in CSS was posing a ch ...

Why is Bootstrap 4 causing these columns to stack vertically instead of horizontally?

After upgrading to bootstrap 4, I noticed that my gallery layout has changed from horizontal in bootstrap 3 to vertical. What could have caused this sudden change? To see the issue, here is a link to a fiddle. Here are my column settings: <div class= ...

Building a form within an Angular Material table component

I am currently facing an issue where I need to embed a form within a mat-table that is contained inside a stepper which is housed within a mat-dialog. Currently, I have set up a table with mat-form-field and mat-input inside the td tags, but my input appea ...

Is there a way to dynamically adjust the background box size to fit the inner boxes using node.js?

click here for the screenshot of the webpage I'm working on Hey there! I'm currently working on a school project for my assignment. I'm having some trouble adjusting the size of the background grey box to fit with the content inside, such a ...

Apply only the css style to the first adjacent div with a specific class name

Is it possible to apply a specific style to only the first div with the class "bla" and not the second? <div class="outer"> <div> ....(more div's, unknown how many) <div class="bla"> .... <div class="b ...

Unable to adjust iframe height

Below is a snippet of code that I am working with: <style type="text/css"> .div_class { position:absolute; border:1px solid blue; left:50%; margin-left:-375px; margin-top:100px; height:300px; width:500px; overflow:hidden; } .iframe_class { position: ...

Styling a webpage with a two-row layout using just CSS

I am looking to design a 2-row layout for a webpage where one row will contain filters and the other row will display results. The layout should meet the following criteria: The page height should not exceed 100% The first row's height will vary bas ...

Executing a Vue method from the main.js file within a Vue.js document

Why can't I call my method in App.vue? Shouldn't the div with id='App' in the App file allow me to access methods within it? Main.js new Vue({ render: h => h(App), methods:{ gesamt:function () { return 'Hello&a ...

Limit 4 items per row in a flexbox layout with automatic width

https://i.sstatic.net/UaD6R.png I am currently using tables to display my items, but I want to switch to flexbox. However, when I tried using flexbox, the item widths were not dependent on their content. Any suggestions on how I can achieve this? Thank you ...

Create a circular rolling image effect using CSS3 and jQuery when the page is loaded

My div box features a rounded image that I want to roll like a ball on the floor after the page loads. After rolling, I want to position the image perfectly at the center of the box. css: #box{width:900px;height:150px;position:relative;background:red;ove ...

Is it possible to add rounded corners to a Bootstrap 4 container using the container class

Is there a way to achieve a div with both a container class from Bootstrap and rounded corners? <div class="container rounded"> <div class="row"> <div class="col">Approver:</div> </div> </div> Despite using th ...

The text is not meticulously arranged within the designated span

My text-align (center) property doesn't seem to be working correctly with the following code snippet: <span class="info">&nbsp;i&nbsp;<span id="uitleg_itje">Bla bla. </span></span> The CSS for the info class is as fo ...

Display a combination of two distinct data arrays on a single card using React

I have successfully retrieved card images and data into an object. However, I am struggling to render both the image and data within the same card. Below is my initial implementation: import React, { useState, useEffect, useCallback } from 'react&a ...

Disable a tab or menu item if the bean's boolean value is 'false'

I designed a home page with various menu/tab options that redirect the user when clicked, but only if they have access to that specific item. If access is not granted, the menu item becomes unclickable. While this functionality works, I am interested in en ...

Tips for formatting text in a way that allows it to flow down a page smoothly as the

Working within a CSS Grid setup, I have an image on the left and a block of text on the right. As I reduce the page width, both the image and text resize accordingly to fit the page width. However, once the width goes below 475px, the layout breaks and the ...