I require help adjusting my footer so that it remains fixed at the bottom of the page without overlapping with my left-hand navigation bar

Hello, I have been browsing through various discussions seeking help with my footer issue, but unfortunately, I haven't found a solution that works for me.

Currently, I am working on a web app and struggling to keep the footer at the bottom of the page without overlapping my navigation bar (Orange bar) on the left side.

Here is how my page and code look like:

fixed bottom, overlapping nav

<div class="container-fluid">
        <div class="HeaderBar row">
            <div class="col-md-12">
                <img src="images/systemslogo.png" />
            </div>
        </div>
        <div class="FeatureBar row">
            <div class="col-md-12">
                <p>Welcome</p>
            </div>
        </div>
        <div class="row min-vh-100">
            <div class="navbar col-md-1" style="background-color: #f78a00;">

            </div>
            <div class="col-md-11">
                <div class="row">
                    <div class="col-md-12">
                        <AlertSuccess/>
                        @Body
                    </div>
                </div>
                <div class="row fixed-bottom" style="background-color: #CCCCCC;"> 
                    <div class="col-md-12">
                        <p>Footer</p>
                    </div>
                </div>                
            </div>
        </div>
    </div>

If I remove the "fixd-bottom", the footers width fits, but then the footer moves to the top of the page as shown here:

Floating footer proper width

I have also shared an image of my end goal, with personal content blocked out. End Goal I have attempted:

  1. Position relative with Bottom 0
  2. margin-left (although it shifts the footer; causing issues in mobile view where there should be no margin. Perhaps a media query could resolve this)
  3. Position Absolute with mb-0
  4. Other strategies, but I can't recall all that I've tried.

My app is being developed in Blazor with Bootstrap 4.5.2

Thank you to everyone for your help. I've spent the last 2 hours searching and experimenting with no success.

Answer №1

If you want an element to stay in place even when the page is scrolled, use position: fixed;

An element with position: fixed; remains stationary relative to the viewport, maintaining its position regardless of scrolling. The top, right, bottom, and left properties can be adjusted to position the element as needed.

This type of element does not create a gap on the page where it would have originally appeared.

Reference @ https://www.w3schools.com/css/css_positioning.asp

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

Avoiding bootstrap modal from disappearing upon validation failure when submit button is pressed using PHP

Could somebody please help me figure out how to prevent a modal from closing when the user clicks the sign-up button under two different scenarios: If the input fields contain invalid data, I want to display a PHP error message If the inputs are valid, I ...

How can you style text with a circular border using CSS?

I'm struggling to locate an example of what I need. My goal is to make a circle around my text using CSS. While I've seen examples of circles with the text inside, in this case, I aim to have a circle surrounding the text. Here's an illustr ...

Section with a wavy design at the top and bottom

Looking to enhance my FAQ section with a top wave background and bottom wave background for added visual appeal. Reference image: https://i.sstatic.net/ysevY.png Current progress: HTML <section id="faq"> <div id="details"> </div> ...

Ways to move Bootstrap 4 navbar list items to the right side?

Is there a way to move the li elements to the right without causing issues with the toggler or navbar? <link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" rel="stylesheet" /> <nav class="navbar navbar-expand- ...

Python Selenium error: NoSuchElementException - Unable to find the specified element

Coding Journey: With limited coding knowledge, I've attempted to learn through various resources without much success. Now, I'm taking a different approach by working on a project idea directly. The goal is to create a program that interacts wi ...

Changing a table cell's value when a button is clicked using Angular

I'm working with a bootstrap table that includes a button and a textbox above it. After entering a number in the textbox and clicking the generate button, I need to update the "Bill Amount" column for each row with the value from the textbox. How can ...

What if there was a magical jQuery method that could automatically trigger a callback function? What could it possibly be named?

Is there a way to load only images and iframes, similar to the .load() function? I want to automatically add a selector element into the "this" variable for this purpose. $('document').ready(function({ $('a').<Something to trigg ...

Tips for formatting angular text sections

Within the scope of a controller, I have a status variable. After a successful rest PUT request, I add a message to this JavaScript variable. This message is displayed in my template using the {{status}} Is there a way to customize the styling of this mes ...

"Creating a distinctive CSS style for underlining titles without including the actual

Although I've searched on SO, I still haven't found a satisfactory solution to my question. So here's the issue: I want to underline an h3 tag with 100% width EXCEPT for the actual text part. It should look like this: My super title ...

Bootstrap 4: Eliminate right padding from the final grid item in a row

How can I remove padding on the last element of a line using CSS only? If not using "no-gutters": Is it possible to create a visually appealing grid with pure CSS? <div class="container" style="background: yellow;"> <div class="row text-center ...

Utilizing JavaFX 2 with a touch of CSS styling

Currently, I am practicing JavaFX 2.0 and working on creating an XYChart with 2 line series while also customizing colors, strokes, etc. through a CSS file. In order to guide me through this process, I decided to refer to the following link: http://docs. ...

Add a new string to a class within a Vue.js component

Hey there, currently working on a Vue component where I am iterating through a list of countries. Here's how it looks: <div v-for="i in countries" :key="i.id"> {{i.name}} <span class="flag-icon-gr"></span> I want to dynamically ...

The continuous invocation of the ngStyle background-image in Angular 4 is causing a decrease in the loading speed of the page

I'm currently working on an Angular CLI Project "@angular/cli": "^1.1.1", "@angular/compiler-cli": "^4.0.0", In order to dynamically load images from the assets folder within an ng-for loop, I am using the following line of code: [ngStyle]="{&a ...

What is the proper way to justify text alignment in HTML?

I want to align the text to the right like the first row, but the second row keeps overflowing below the image. How can I ensure that the text is properly aligned regardless of the number of rows? <a href="javascript:;" id="A_3"><i id="I_4">&l ...

Issues arise with the Twitter dropdown menu not displaying properly

I am currently facing an issue with my dropdown menus. I have two dropdowns on my webpage: First Dropdown: First Dropdown Code: <select name="idx" id="masthead_search"> <option value="">Library catalog</option> ...

Could we customize the appearance of the saved input field data dropdown?

I'm currently working on styling a form that includes an input field. The challenge I'm facing is that the input field needs to be completely transparent. Everything works fine with the input field until I start typing, which triggers the browser ...

Challenges with CSS3 Opacity Transition

I've been experimenting with CSS3 transitions on a website I'm designing, but I've encountered a small problem. Whenever I hover over an element with a CSS3 transition, the text in the previous section blurs momentarily and then returns to ...

How can I enhance Parallax scrolling performance on Chrome?

I recently completed a tutorial from the following link: After customizing it by changing the image to something different than clouds, I noticed that my version of the website was experiencing lag issues in Chrome but worked fine in Firefox. However, whe ...

The icon is missing from the implementation, but it is visible in the demonstration

I'm facing an issue with adding the delete icon at the end of my chip. It works perfectly in the Material UI demo, but not in my own code. I've tried debugging, but I still can't pinpoint the problem. The icon is supposed to show up due to t ...

Modify the center table cell to match the width of its content

Is there a way to make the middle table cell adjust its width based on the content inside it? I've managed to do this for a table cell at the end using: width:1px; white-space:nowrap; But I can't seem to achieve the same effect for a middle tab ...