The content in the footer is not displaying correctly (Vuejs)

I recently developed a component with a title and a background color meant to cover the entire page, but it seems to have a top margin that I can't seem to remove. Additionally, I created a footer component that should always stay at the bottom of the page and adjust its position based on the content added. However, the content overlaps the footer and even crosses over it. How do I go about fixing this issue?

Background CSS:

<style scoped>
*{
    margin: 0%;
    padding: 0%;
}
.background{
    position: relative;
    height: 88vh;
    background-color: #3B3B3B;
}
.title{
    border: 1px solid #707070;
    border-left: none;
    border-right: none;
    
}
.title h2{
    text-align: left;
    color: #B16DFF;
    padding-top: 0.8em;
    font-size: 2em;
    padding-bottom: 0.5em;
    margin-left: 1.5em;
    font-weight: 600;
}

Footer CSS:

<style scoped>
.container{
  width: 100%;
  margin: 0%;
  position: absolute;
  bottom: 0%;
  background-color: #232323;
}

.container h2{
  font-weight: bold;
  color: #B16DFF;
  font-size: 1.5rem;
  padding-top: 1.1em;
}

.container #text{
  position: relative;
  float: left;
  padding-left: 5em;
  text-align: justify;
  padding-bottom: 2em;
}

.container p{
  font-weight: 600;
  font-size: 0.8rem;
  color: white;
}

.container #title{
  padding-bottom: 0.4em;
}

.container #description{
  padding-bottom: 1.3rem;
}

.container #images{
  position: relative;
  padding-top: 3em;
  float: left;
  padding-left: 5em;
}

.container ul li{
  display: inline-block;
  padding-left: 2em;
}

Answer №1

Your background css includes a specific scoped style that limits its application. Additionally, when setting a css property to 0, unit specification is unnecessary.

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

Permitting various valid responses for questions in a multiple-choice test | Utilizing Angular.js and JSON

As a beginner in this realm, I must apologize if my query seems naive. I recently crafted a multiple-choice quiz using HTML, CSS, JavaScript (angular.js), and a JSON data file following a tutorial I stumbled upon. The outcome pleased me, but now I am face ...

Tips for sending query parameters with axios

I'm facing an issue with sending a request to http://localhost:5000/trackers/{{id}}. Despite trying to pass parameters through axios, the API is only receiving requests at http://localhost:5000/trackers/. How can I resolve this problem? Below is my A ...

What is the best way to notify the user about the input in the textbox?

Imagine you have a button and an input field. How could you notify the user of what is in the input field when the button is pressed? Please provide a simple explanation of your code. ...

Creating a template for wrapping child elements conditionally to avoid redundancy

I need a template to render differently based on a boolean prop. If the prop is true, the wrapper should be outside all child elements. If false, it should only wrap one of the child elements. I am currently duplicating child elements in the template as ...

Align an image in the center vertically within a left-floated div with a minimum height

I am currently attempting to vertically align an image within a div that is positioned to the left, and has a minimum height of 150 pixels. The issue I am facing is that none of my attempts seem to be successful. I have tried various methods, including ut ...

Ways to delete a tag with jQuery

Currently I'm struggling with hiding elements like delpc and picnam. Here is the structure of my code: <ul id="userpic" class="user pic"> <im class="pict"/> Picture preview </ul> <div id="showpicname"> <div id= ...

Steps to customize the appearance of a button within a file input field

When implementing the file input in my code on a Mac, I noticed that the alignment appears off. On all other devices, it looks just fine. However, when I try to apply a style specifically to the 'Choose file' button, the style also gets applied t ...

Tips for extracting both the div and entire inner content using JavaScript

I need to retrieve the inner content of a div using JavaScript For example: <div id="content" style="height: 20px; overflow: hidden"> content<br>content<br>content<br> </div> This is my HTML code. I only know the div&apos ...

Getting started with CSS and HTML: Tips and Tricks for Beginners

Seeking advice on how to enhance my web designing skills, particularly in starting point and techniques. Currently, I am familiar with HTML and CSS, but have been primarily using pre-made templates for building websites. I aspire to be able to transform ...

Having Trouble with Form Submission Button Across Different Web Browsers

Having some trouble with my form - all fields are properly closed with tags, but when I click the submit button, nothing happens. The page is loaded with code, so here's the link for you to check it out. Unfortunately, right-click is disabled, so ple ...

The HTML content I created is too large for the screen and is extending beyond its borders

The navigation bar and footer on my HTML page adjust themselves according to the screen width, but the main content is not adjusting properly. I tried using a media query for mobile resolution (517px), but when I tested it on a PC with a smaller screen wi ...

Transforming an image by masking it to create a binocular-like view

I've been experimenting with creating a unique visual effect where an image is revealed through a binocular-shaped element that follows the mouse cursor. The circular part of the element moves along with the cursor, unveiling parts of the image as it ...

Creating a radial gradient texture using CSS

I'm encountering an issue with my radial gradient and texture combination. Here is the code snippet I am using: background-image: url('../img/texture.png'); /* fallback */ background: -moz-radial-gradient(rgba(253,253,253,0.1) 0%, rgba(2 ...

Creating a running text (marquee) with CSS is a simple and efficient way to make

I encountered a significant challenge while delving into CSS animation. My goal is to create a "transform: translate" animation that displays text overflowing the content width as depicted in the image below. https://i.stack.imgur.com/sRF6C.png See it i ...

The server failed to start with exit code 1 - Command execution terminated

Upon my initial attempt to launch a server from vite (vue/javascript), I encountered the exit 1 code error. Despite successfully installing the latest versions of vite/vue globally (vue 3.4.21, @vitejs/plugin-vue 5.0.4, vite 5.2.6). I have gone the route ...

Exploring the World of Html

I'm struggling with an HTML problem related to a web programming class I'm taking. The assignment involves creating a video game using HTML and JavaScript, where an image moves randomly on the screen and the player must click on it as many times ...

Attempting to grasp the fundamentals of angular Routing, however, upon attempting to reload the page, nothing appears to be displayed

While working in the Bracket editor, I created a file structure with various files located under the 'scripts' tags within the Index.html file. The root folder is named 'projectAngular', inside which there are subfolders like 'appC ...

I am eager to design a form input field within the vuetify framework

I'm having trouble creating a text field in Vuetify where the button and height are not behaving as expected. I've attempted to adjust the height multiple times without success. Although I have the necessary CSS, integrating it into Vuetify has ...

Leveraging Rails 5.1 with API integration, Webpacker, and Vue

I'm currently in the process of setting up a Rails API and VueJs client with webpacker on Cloud9. Following a standard installation: npm install -g yarn && rails _5.1.4_ new . --api --webpack=vue To launch both rails and webpack, I am using ...

Whenever I navigate to a new page in my NEXTJS project, it loads an excessive number of modules

I am currently working on a small Next.js project and facing an issue where the initial load time is excessively long. Whenever I click on a link to navigate to a page like home/product/[slug], it takes around 12 seconds to load due to compiling over 2000 ...