What is the best way to position a Footer beneath a background image?

Looking to create a row of images as a footer below the background image, but struggling with positioning it correctly. When I try to put the footer at the bottom, it ends up above some elements. Could the width of the images be causing the row to split into two?

.navbar-nav>li {
            float: none;
        }
        .navbar-default {
            background-color: rgba(255, 255, 255, 0);
            border-width: 0px;
        }
        .navbar-default .navbar-nav > li > a:hover,
        .navbar-default .navbar-nav > li > a:focus {
            background-color: rgba(150, 155, 155, );
        }
        .navbar {
            margin-bottom: 0 !important;
        }

        .list {
            font-family: 'Open Sans Condensed', sans-serif;
            font-weight: bolder;
        }

        .synopsis {
            color: white;
            text-align: center;
        }

        .teampics .row {
            margin-top: 17%;
            text-align: center;
        }
<!DOCTYPE html>
        <html>

        <head>
          <meta content="width=device-width, initial-scale=1" name="viewport">

          <link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
          <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
          <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
          <link href="Calums2.css" rel="stylesheet">
          <link href='https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300' rel='stylesheet' type='text/css'>
        </head>

        <body>
            
            <div class="person">
                <img height="100%" src="http://i.imgur.com/pE2NrKh.jpg" style="position: absolute; top: 0; left: 0;" width="100%">
            </div>
            
            <div class="list" style="Position: absolute; top: 0px; left:0px;">
              <div class="navbar navbar-default">
                  <nav class="navbar navbar-default">
                      <ul class="nav nav-justified navbar-nav">
                          <li><a href="Home.html"><h2>Home</h2></a></li>
                          <li><a href="team.html"><h2>Team</h2></a></li>
                          <li><a href="kyrgyzstan.html"><h2>Kyrgyzstan</h2></a></li>
                          <li><a href="Blog.html"><h2>Blog</h2></a></li>
                          <li><a href="Expeditions.html"><h2>Expeditions</h2></a></li>
                        </ul>
                    </div>
                  </nav>
                 <style>
                    text-align: justify;
                 </style>
              </div>
            </div>

            <div class="col-sm-4" style="position: absolute; bottom: 0px; left: 0px;">
                <div class="synopsis">
                    <h3>Barrett's Privateers</h3>
                    <h5>We are a group of old school friends (plus a few others who tag along) who go on expeditions and good trips. We have over a thousand nights under canvas between us, and there are more in the pipeline. We have done trips on foot, by car, on water in the boat we built, by bicycle and even in a wooden burger cart. So far our outings have taken us across Europe, Asia and Africa.</h5>
                </div>
            </div>

            <div class="sponsorfooter" style="position: absolute; bottom: 0px; left: 0px;">
                <div class="col-sm-1"><img src="https://static.wixstatic.com/media/83f988_1eab1592deae4a06927c22dd9435c1d6.jpg/v1/fill/w_196,h_90,al_c,q_75,usm_0.50_1.20_0.00/83f988_1eab1592deae4a06927c22dd9435c1d6.jpg"></div>
                <!-- Add the other sponsor images here -->
            </div>

        </body>
    </html>

Answer №1

Your code contains multiple unnecessary DIVs and one that is not properly closed.

Consider using the following HTML instead:

<div class="person">
    <img height="100%" src="http://i.imgur.com/pE2NrKh.jpg" style="position: absolute; top: 0; left: 0;" width="100%">
</div>

<div class="list" style="Position: absolute; top: 0px; left:0px;">
    <div class="navbar navbar-default">
        <nav class="navbar navbar-default">
            <ul class="nav nav-justified navbar-nav">
                <li><a href="Home.html"><h2>Home</h2></a></li>
                <li><a href="team.html"><h2>Team</h2></a></li>
                <li><a href="kyrgyzstan.html"><h2>Kyrgyzstan</h2></a></li>
                <li><a href="Blog.html"><h2>Blog</h2></a></li>
                <li><a href="Expeditions.html"><h2>Expeditions</h2></a></li>
            </ul>
        </nav>
    </div>
  <style>
    text-align:justify;
  </style>
</div>


<div class="col-sm-4" style="position: absolute;bottom: 0px; left: 0px;">
    <div class="synopsis">
        <h3>Barrett's Privateers</h3>
        <h5>We are a group of old school friends (plus a few others who tag along) who go on expeditions and good trips. We have over a thousand nights under canvas between us, and there are more in the pipeline. We have done trips on foot, by car, on water in the boat we built, by bicycle and even in a wooden burger cart. So far our outings have taken us across Europe, Asia and Africa.</h5>
    </div>
</div>

<div class="sponsorfooter" style="position: absolute;bottom: 0px; left: 0px;">
    <div class="col-sm-1"><img src=https://static.wixstatic.com/media/83f988_1eab1592deae4a06927c22dd9435c1d6.jpg/v1/fill/w_196,h_90,al_c,q_75,usm_0.50_1.20_0.00/83f988_1eab1592deae4a06927c22dd9435c1d6.jpg></div>
    <div class="col-sm-1"><img src=https://static.wixstatic.com/media/83f988_a874687813fefff04482e59d0a287e96.jpg/v1/fill/w_176,h_82,al_c,q_75,usm_0.50_1.20_0.00/83f988_a874687813fefff04482e59d0a287e96.jpg></div>
    <!-- More image elements here -->
</div>

View Demo on jsFiddle

Answer №2

The reason for this issue is that you specified the height of your background image as 100%. Try decreasing the height to resolve it.

Answer №3

Maybe you're looking for something like this...I noticed several errors in your code, such as unclosed divs. Additionally, the logo images needed to be responsive with the img-responsive class to fit nicely. I also added a 'textover' div to display text over the image and set the image as the background of another div called content. In that div, I specified min-width:848px to match the width of the background image.

<!DOCTYPE html>
<html>

<head>
  <meta content="width=device-width, initial-scale=1" name="viewport">

  <link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js">
  </script>
  <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js">
  </script>
  <link href="Calums2.css" rel="stylesheet">
  <link href='https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300' rel='stylesheet' type='text/css'>
<style>
.navbar-nav>li {
  float: none;
}
.navbar-default {
  background-color: rgba(255, 255, 255, 0);
  border-width: 0px;
}
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
  background-color: rgba(150, 155, 155, );
}
.navbar {
  margin-bottom: 0 !important;
}


.list {
  font-family: 'Open Sans Condensed', sans-serif;
  font-weight: bolder;
    
}

.synopsis {
      color:white;
      text-align: center;
}

.teampics .row {
    margin-top: 17%;
    text-align:center;
}
.content
{
background-image:url("http://i.imgur.com/pE2NrKh.jpg");
background-repeat:no-repeat;

}

...

</body>

</html>

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

When clicking on a different tab, the Bootstrap tab will shift to the left, outlining the new selection

While working with Bootstrap, I created a small footer with a tab. However, whenever I click on the second value, the entire div shifts to the left. How can I keep it in place? Below is my code along with two images depicting how the first tab aligns corr ...

Managing Requests for IP and Domain Names Using Angular Frontend and Spring Boot Backend

I am currently developing a Spring Boot application with an Angular frontend that acts as a simple login gateway. This login system utilizes encrypted credentials and click verification to authenticate users. I aim to customize the functionality based on w ...

CSS: Adjusting the vertical position of text without affecting the background

I am currently working on some CSS buttons that expand in size when hovered over. I have successfully increased the text size as well, but now I am facing an issue with aligning the text a few pixels lower without affecting the background image layout. Ca ...

The $watch() function seems to be failing to properly refresh the $scope

Within my controller, I have a function $scope.remove() that triggers a request to the usercart, which then calls an API. The JSON response from the API includes an object with an array of cart items. Despite using an ng-repeat in the HTML to iterate thro ...

Just dipping my toes into HTML and CSS, noticing that links start to shift around when hovered over

I am struggling to create 3 images that double as links to other pages. However, whenever I hover over them, they seem to shift out of place. Can anyone offer some guidance? This is my CSS code for the second media query, and I want it to be applied univ ...

Responsive Bootstrap 4 Carousel with Sliding Images and Text

I copied and pasted the Carousel code example from the Bootstrap 4 official website, but I noticed that it is not responsive. You can try it on this page: https://getbootstrap.com/docs/4.0/examples/carousel/ If you resize or open it on a small cellphone, ...

What prevents a click event from reaching the <body> element?

This slider runs in an animation loop until one of the dots at the top is clicked. Once clicked, the animated elements (the <span> dots and the <figure>s) receive a style that halts the animation. <section id="slider"> <span class ...

How to make Bootstrap 4 navbar tabs collapse using card accordion functionality

Check out this interactive example: https://jsfiddle.net/dominijk/bLpach25/1/ The accordion layout I have set up consists of collapsible cards where opening one card causes the others to collapse. The tabs within each card are functioning properly. My go ...

Lack of animation on the button

Having trouble with this issue for 48 hours straight. Every time I attempt to click a button in the top bar, there is no animation. The intended behavior is for the width to increase and the left border color to change to green, but that's not what&ap ...

Guide on extracting nested arrays and displaying them in a table with vue.js

i am struggling to extract nested arrays from a JSON response, and I need some guidance on how to achieve this. Please take a moment to review my explanation below: below is the JSON response that I received: { "Value": [ { "id& ...

When aligning to the right, input box does not wrap

Is there a way to prevent an input box from displaying on a lower line than the menu when using CSS to create a one line menu floated to the right? This is the CSS code being used: <style type="text/css"> #nav { margin:0; padding:0; lis ...

Box without a border wrapping around it

I can't seem to figure out why the border I applied to a child div is not completely enclosing the element. I created two boxes using div tags and added a border to one of them. #box { height: 500px; width: 500px; background-c ...

Prevent Safari iOS 13+ from zooming with double tap feature

Is there a way to turn off the "double tap to zoom" feature on Safari iOS 13+ mobile? I've noticed that sometimes it zooms in and other times it doesn't. It seems like it only works on certain HTML elements. I've read that "double tap to z ...

Explore the feature of toggling visibility of components in Vue.js 3

I am facing an issue with showing/hiding my sidebar using a button in the navbar component. I have a navbar and a side bar as two separate components. Unfortunately, none of the methods I tried such as v-show, v-if, or using a localStorage value seem to wo ...

Styling and Script Files on a JQuery Mobile Website

Is it necessary to include CSS and JS files in every HTML page for a mobile site developed with JQueryMobile? <link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css" /> <script src="http://code.jquery.com/jqu ...

Performing addition and multiplication operations on separate identifiers with the help of Jquery

Currently, I am working on developing a shopping cart website and I am new to using Jquery. My layout involves the need to increment and decrement values by one when the plus and minus button is pressed. Additionally, the total price value should also be a ...

Month and year selection feature in ExtJS 4 catalog

I recently came across an interesting Fiddle that featured a Month and Year picker for apps. After finding this Fiddle here, I noticed that it was built using Extjs 5.0, and it worked perfectly. However, when attempting to switch it to version 4.2.1, the l ...

developing a simulated mouse pad using jquery featuring both click and hover functionalities

Hey there! I'm completely new to the world of JavaScript and JQuery, and I have a cool project in mind - creating a virtual mouse pad. I've set up two div elements, one for the mouse pad and another as a container. Inside the container, there&apo ...

Discover the concealed by using overflow: hidden on the parent's children

I am facing an issue with my photo gallery where I want to hide some photos initially and display how many are omitted from the gallery using overflow: hidden;. After reading through this particular response, I attempted the following solution: const a ...

How come Google search results are not displaying on the HTML5 form?

<form action="https://www.google.com/search?q=" method="get"> <input type="text" name="search" id="search"> </form> Every time I enter text in the input field and hit enter, it redire ...