What is the best way to eliminate the excess space below the footer on a vuejs page?

I am developing a footer using vuejs along with buefy.

In my implementation of App.vue below, I am encountering a white margin under the footer.

// App.vue

<template>
  <div id="app">
    <main-header />
      <router-view/>
    <main-footer />
  </div>
</template>

...
<style>
  html, body {
    height: 100%;
  }
  body {
    padding: 0;
    margin: 0;
  }
</style>

I am uncertain about the origin of these margins.

How can I resolve this issue?

++++ Please find below the code for the footer that I have implemented:

// Main Footer

<template>
  <footer class="footer">
    <div class="content has-text-centered">
      <p>
        <strong>Web</strong>
        <br>
        © 2020  •
      </p>
    </div>
  </footer>
</template>

<script>
export default {
  name: "MainFooter",
}
</script>

<style scoped>
  footer {
    margin: 0;
  }
</style>

https://i.sstatic.net/mGGck.png

Answer №1

The margin for the body has been set to 0 but not for the footer. To adjust the margin for the footer, you can use a similar method:

footer {
  margin: 0;
}

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

JQuery table sorter is unable to effectively sort tables with date range strings

I am facing an issue with sorting a column in my table that contains text with varying dates. The text format is as follows: Requested Statement 7/1/2014 - 9/16/2014 When using tablesorter, the sorting does not work properly for this column. You can see ...

Tablet-friendly dropdown menu

Seeking advice on implementing @media queries for tablets with a width of 991px. Currently, the CSS file is optimized for mobile devices but needs adjustments for tablet responsiveness in the dropdown menu. I attempted the following CSS code: @media (max ...

How can I adjust the size of my elements to be responsive in pixels

While browsing through Quora and Facebook feeds, I noticed the fixed size of user display pictures: width: 40px; height: 40px; Even when resizing the browser window for a responsive design, these pictures maintain their size at 40px x 40px. What other f ...

Error in CSS Header - Position Shifts when Hovered Over

UPDATED HEADER HTML/CSS I am currently working on the header section of my website at . I encountered a bug where, upon hovering over the links in the header from right to left, the positions of the links become disorganized. I am unsure of what might be ...

Create styles for each component based on their specific props when designing a customized Material-UI theme

I am having trouble styling the notchedOutline of a disabled <OutlinedInput /> in my custom MUI theme. My goal is to make the border color lighter than the default color when the input is disabled. Here is what I have attempted so far: const theme = ...

Styling columns alternately with CSS - an even-odd approach

I'm having an issue with my html code structure. Here's how it looks: <article></article> <article></article> <article></article> <article></article> <article></article> <article> ...

Navigate within a single component on the Stack by scrolling

I'm a huge fan of CSS! Although it may seem like a simple task, I am completely stumped on how to tackle it. Mission: My goal is to enable scrolling only within the List section without affecting the entire page. Here's the structure of my ...

Maintain the flow of passed slots into a slotted component using a functional enclosure

Playground I currently have the following set up: <script setup> import { ref } from 'vue' import Input from './Input.js' import Text from './Text.vue' const msg = ref('Hello World!') </script> <tem ...

I'm struggling to understand how to interpret this. The v-tab function seems to be generating a button with various properties, but I'm unsure which specific property is related to

The V-tab below generates the button known as the right one on the v-app-bar: https://i.stack.imgur.com/DzNmq.png <v-tab :to="'/demo'" active-class="text--primary" class=&quo ...

What is the best way to implement a scroll-into-view feature for a newly added list item in Vue.js?

I am currently utilizing vueJS to create a task viewing application. My goal is to make the div containing the list focus on the newly added list item immediately after adding a new task. Here's the HTML code from my template for the task list: < ...

How can I make icons larger in ELEMENT UI?

<i class="el-icon-delete col-sm-3"></i> I've experimented with numerous classes in an attempt to enlarge the icon, however, I haven't had any success. Can someone assist me in increasing the size of this Element UI icon? ...

Eliminate viewed alerts by implementing a scrolling feature with the help of Jquery, Javascript, and PHP

My goal is to clear or remove notifications based on user scrolling. The idea is to clear the notification once the user has seen it, specifically in a pop-up window for notifications. I am relatively new to Javascript/jQuery and feeling a bit confused abo ...

The select() function for this.$refs.name is not available in Vue

In my application, I'm implementing Vue refs to enable selecting and copying text when a button is clicked. The code structure looks something like this: //In template <input type="text" ref="url" value="my url"/> <button @click="copylink"&g ...

Create a button that matches the dimensions of the background image

I am working with a form that includes a submit button featuring a background image. <button type="button" class="button" alt="Send" onclick="validate_form_newsletter_wide( form )"></button> Everything works well when I define the dimensions ...

What's the optimal method for integrating bootstrap.css into a Nuxt project?

Here is a snippet from my nuxt.config.js file: head: { link: [ { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }, // load bootststrap.css from CDN //{ type: 'text/css', rel: &ap ...

Resolve the issue of text overflow in PrimeNG Turbo Table cells

When utilizing Primeng table and enabling the scrollable feature, the table is expected to display a scrollbar while ensuring that the text within the cells does not overflow. Unfortunately, this expected behavior is not occurring. To see an example of th ...

How can I switch between columns in a dual-column layout?

In my latest project, I utilized CSS Flexbox to create a sophisticated two-column layout that allows toggling each column independently. While this functionality is exactly what I need, I can't help but feel that my current method is somewhat cumberso ...

How to position two Bootstrap 4 Navbars side by side

I'm currently experiencing an alignment issue with two stacked navbars in my code. I want to align the upper navbar with the lower one, but I've tried various approaches without much success. Is there a problem with the buttons or something else ...

Utilizing border-image property to showcase four dots in each corner of my div container

I'm having trouble applying a gradient color to my border using the border-image property. When I use border-image: linear-gradient(-180deg, #2D6BD0 0%, #83B8FF 100%);, I'm only seeing a single dot in each corner of my DIV. Does anyone know why t ...

Preventing Bootstrap 4 slider images from shifting position when using background-attachment:fixed for a parallax effect

I'm trying to implement a Parallax scrolling effect on my Bootstrap 4 slider. However, every time the slider switches to the next image, the image needs to readjust itself into place. How can I avoid this? .customOverlayText { position: absolute; ...