I am trying to create a floating button as shown in this video. However I am unable to implement the same. I am basically tying to add this to one my django templates.
Here is the code of the HTML:
{% extends "base.html" %}
{% load bootstrap4 %}
{% block content %}
<button class="material-icons floating-btnz">Add</button>
Some more code here
{% endblock %}
<style>
.floating-btnz{
width: 80px;
height: 80px;
background: #009879;
display: flex;
border-radius: 50%;
color: #ffffff;
font-size: 40px;
align-items: center;
justify-content: center;
text-decoration: none;
box-shadow: 2px 2px 5px rgba(0,0,0, 0.25);
outline: blue;
border: none;
cursor: pointer;
}
</style>
I have included the material icon cdn in my base.html. It seems to me that the cdn is not working. Upon checking in the web console, the css is loading but not showing up on the button. Where am I going wrong? Any help is appreciated.