In Firefox, when using overflow: hidden, scrollbars and spaces persist even though the overflow is hidden

Firefox seems to be causing some issues with the overflow: hidden; property, as I have read in related stories. To address this, I tried adding clip-path: inset(0 0 0 0); and even included -moz-overflow: hidden;. While this did hide the overflow, it left a large blank space where the overflow would have been. How can I eliminate this extra space?

Below is my CSS:

    .site-footer {
        position: relative;
        display: table;
        -moz-overflow: hidden;
        overflow: hidden;
        clip-path: inset(0 0 0 0);
        background-color: #10142F;
        width: 100%;
        padding-top: 30px;
    }

    .site-footer::before{
        content: "";
        width: 350%;
        max-width: 350%;
        display: table-cell;
        height: 120%;
        left: -125%;
        top: -10%;
        position: absolute;
        z-index: 0;
        background-image: url('media/backgrounds/blue-planet-4-1700-2.jpg');
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        -webkit-animation: spin 160s linear reverse infinite;
        animation: spin 160s linear reverse infinite;
    }

The issue seems to be with the rotating background pseudo-element, which is intentionally larger than its parent element but should be cropped using CSS.

Visit the website here: www.satya-ame-art.com

This problem only occurs at the footer's end on this specific website. It works fine on Chrome and Safari...

Thank you for your assistance!

Answer №1

To ensure no content exceeds the boundaries, apply overflow: hidden to the page element

#page {
  overflow: hidden;
}

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

Problem with the visibility of the drop-down menu when hovering over it

I am currently developing a ReactJS application using reactstrap. One of the components I have created is a dropdown with submenus nested inside. My goal is to make the submenus appear when hovering over the dropdown, and if there are multiple dropdowns ( ...

Expanding dropdown selections to display corresponding values in a separate tag with Firebase database integration

I need help with creating a dynamic relationship between the System value (child node) and the Equipment (parent node) using a drop-down menu. Essentially, I want to be able to select an equipment from the dropdown list and have it automatically update the ...

Having issues with referencing external JavaScript and CSS files in Angular 6

Dealing with an angular6 project and a bootstrap admin dashboard template, I'm facing issues importing the external js references into my Angular application. Looking for guidance on how to properly import and refer to external Js/CSS files in an angu ...

Exclude strong tag inside div using Jsoup Select

Here is a sample of HTML code: <div class="address"> <strong>John Doe </strong> <br>Main Street 5 <br>12345 Anytown </div> This is the code snippet I am using: html = html.r ...

Error loading skin on Gluon Project

In my project, I have created a unique custom control called ChoiceTextField along with its corresponding skin named ChoiceTextFieldSkin. protected Skin<?> createDefaultSkin() { return new ChoiceFieldSkin<T, ChoiceTextField<T>>(t ...

How do I get the Bootstrap carousel caption to display in fullscreen mode at 1920 x 1080 resolution?

Currently puzzled by the issue of carousel-caption not displaying in a full-screen 1920x1080 window. When the window is not enlarged, the caption appears as expected. Here's the code causing concern: <div id="carousel-example-generic" class="carou ...

Eliminate any <div> tags that contain matching patterns in their ids

All the div elements are nested inside another div with the ID #main. The structure resembles a tree, with each div connected to its parent by a single line. These div elements are dynamically generated, and their IDs are created following a specific patte ...

Creating a polished and stylish centered responsive image with Bootstrap 3

I am facing an issue with centering a styled responsive image on my website. Upon debugging, I discovered that the class "portimage" is causing the responsiveness to break. My requirement is to ensure that the images do not exceed 700px in size and have a ...

PHP form enables users to send messages using their own email address

Lately, I've encountered some issues with my PHP contact form. It has been functioning perfectly for the past two years without any changes made to it; therefore, I'm puzzled as to what could be causing the problem. Here is the code snippet: < ...

Flexbox does not seem to be cooperating with CSS Auto Width

Hello Overflowers, I've designed an HTML page with the following specifications: 1. Resetting HTML, BODY, DIVs, and SPANs to have no border, padding, margin, or outline 2. Setting display properties for HTML, BODY, and DIV elements 3. Defining hei ...

Show information from mysql in a dual-column format

I am pulling data from a single table in mysql, currently displaying it in one column. I want the data to be displayed in two columns next to each other. You can check out the results at www.urimsopa.com Here is my current code: $results = $mysqli->qu ...

Guide to changing CSS style dynamically using AngularJS

<div style="width: 50px !important"> I am looking for a way to dynamically set the pixel number using angularjs. The final width should be calculated based on a base pixel width as well. How can I make this happen? <div ng-style="{{width: (model ...

Images, CSS files, and JavaScript files in asp.net mvc are experiencing issues with caching

To ensure better security and consistency, I made sure that my pages were not cached. Whenever I pressed the back button on my browser, it always contacted the server to retrieve the HTML content. I accomplished this by implementing a custom action filter ...

vertically centering a div specifically on laptops

What is the best way to vertically center a div on lap-tops? (...) body {padding: 4% 16%;} body {top:0px; left:0px; bottom:0px; right:0px;} body {border: 12px solid darkred; border-style: double;} body {background-color: #FAFCB4;} p {font-size: 80%; text- ...

Creating a table with a mix of fixed and variable width columns

Is it possible to design a table using CSS that has the first three columns with a fixed width in pixels and the rest with a width in percentage like the example shown here: I am familiar with creating columns with variable or fixed widths, but unsure how ...

Unable to apply 3rd condition with ngClass into effect

I've been attempting to incorporate a third condition into my ngClass. Initially, I managed to get two classes working in my ngClass to change the row colors alternately. [ngClass]="{ totalrow:i%2 != 0, odd:i%2 == 0}" Now, I'm trying to introdu ...

Exclude the parent background in the child class when inheriting other properties

I need the child class to inherit all properties from its parent, except for the background color. The immediate parent has a white background, but I want the child to skip this and take the background color from the grandparent component, which is bluebac ...

It is not possible to submit a form within a Modal using React Semantic UI

I am working on creating a modal for submitting a form using React semantic UI. However, I am encountering an issue with the submit button not functioning correctly and the answers not being submitted to Google Form even though I have included action={GO ...

Material-UI - Switching thumb styles in a range slider

Looking for a way to style two entities differently on the Material-UI Slider? Entity A as a white circle and Entity B as a red circle? While using data-index can work, there's a flaw when sliding. Is there a better approach? if (data-index === 0) { ...

Tips for splitting Bootstrap 4 cards

I have integrated Bootstrap 4 into my application and am utilizing the card system as shown below. <div class="card-body text-success"> </div> Now, I want to divide the above card into 3 columns and two rows with equal he ...