Additional room on the right-hand side

I've been working on my website, www.ribbonhill.co.uk, and I'm facing an issue with a white space on the right side that only appears on mobile phones.

Interestingly, this problem doesn't show up in full mode on Chrome and Edge browsers. However, when the display is resized to a smaller size, the issue is present on Edge but not on Chrome.

The website was created using Django-oscar and initially didn't have any problems.

I tried removing two CSS files, ribbonhill.css and w3.css, which eliminated the white space. Removing w3.css left only a small space, while removing ribbonhill.css caused a larger gap.

I attempted to eliminate some code snippets without success.

@media
only screen and (-webkit-min-device-pixel-ratio: 1.5),
only screen and (-o-min-device-pixel-ratio: 3/2),
only screen and (min--moz-device-pixel-ratio: 1.5),
only screen and (min-device-pixel-ratio: 1.5){

  html,
  body{
    width:100%;
    overflow-x:hidden;
  }

}

And

html,body
{
    width: 100%;
    height: 100%;
    margin: 0px;
    padding: 0px;
    overflow-x: hidden; 
}

Despite these efforts, I haven't been able to resolve the issue.

Update: The white space issue has been resolved on mobile phones and Chrome, but it still persists on Edge / Internet Explorer as shown below. I might just leave it as it ishttps://i.sstatic.net/KQJ3K.png

Answer №1

After reviewing your website www.ribbonhill.co.uk, I noticed a small CSS issue.

  1. To correct the problem in the navigation bar, remove the min-width: 400px; for your site logo and change width:80% as it is not a valid input value.

Modify your CSS by following these instructions:

.logo { margin-left: 50%; transform: translateX(-50%); min-width: auto !important; }

  1. Eliminate the padding: 2rem 0 0; for your .footer class because it interferes with the container padding.

The correct CSS should be:

.footer, footer {padding-top: 20rem;margin-bottom: 0rem;}

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

What are some ways to eliminate spacing between child and parent div elements?

I am facing an issue with a parent div that contains multiple children. I want to add spacing between the children by applying margins, but this also creates unwanted space between the parent and the children. Is there a clean solution to remove this space ...

Using selenium: unable to find the existing ID webelement that is being returned

I am attempting to create an automated login using Python with Selenium for the site below: The versions I am using are: Python 3.9.11 Chrome ver 117.0.5938.92 - 64 bit ChromeDriver 117.0.5938.92 - 64 bit This is the HTML element for the username field: ...

Creating various layouts using multiple columns in bootstrap

I am currently working on creating a 2 column page where each column posts to different actions, but the layout should be as follows: +----------------+ +-----------------+ | | | | | | | Should post to | | Sh ...

Images failing to load properly

Hi there, I'm new to programming and I'm in the process of creating a website. However, when I open my HTML file directly, the images are not displayed. Strangely, when I use VS Code or Brackets editor's live server, all the photos and pictu ...

Activate divs with Bootstrap5 modal toggle functionality

What adjustments must be made to the Bootstrap 5 example below in order to achieve the following two objectives: The "afterAcceptingTerms" division should remain hidden until the user clicks on the Accept Terms modal button, ensuring that only the "before ...

Styling the Drop down list popup on mobile devices to appear based on the clicked position

Hello! I recently started learning React.js and we are using the material-io CSS framework for our app development. I have been assigned a task to create a dropdown menu that opens either upwards or downwards based on the position of the menu when accesse ...

Issue with Vue v-for not updating data model variable

I am attempting to render a page with dynamic properties using the following code: <script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.17/vue.js"></script> <div id="root"> <div v-for="current in 2&quo ...

Using Javascript to add hovering effects that demonstrate sophistication and style

I have a question : Here is the HTML code snippet: <div class="a b"> <span class="one">Success ONE</span> <span class="two">ONE</span> </div> <div class="a b"> <span class="one">Success TWO< ...

Having trouble making my if / else statement show the_header_image_tag on WordPress

Having some trouble getting my if / else statement to function correctly. I am using a WordPress function called '' and I want to apply different CSS styles based on whether it is used or not. My theme allows for the display of a banner, but onl ...

Position images inside a stylish border using CSS styling

//UPDATE: I've made some changes to the Pen, so now everyone can view the solution! Check it out here. My goal is quite simple in my opinion. I want to create an image that zooms in when you hover over it but doesn't increase in size. I attempte ...

The sole functioning menu at the moment is the final one

The values of u and v are being retrieved correctly as 1 and 0, but there seems to be an issue using them in the statement "t[i].children[v].onclick=function(){}". The code works fine when I manually input 1 for u and 0 for v. Here is the snippet: < ...

What is the method for deactivating a hyperlink with CSS?

Within my wordpress page, there is a specific link present. This particular link belongs to a class. Is it viable to deactivate this link solely through the use of CSS? <a class="select-slot__serviceStaffOrLocationButton___5GUjl"><i class="mater ...

Is it possible to make the li elements within my ul list display on multiple lines to be more responsive?

My credit card icons are contained within a ul. I have used the properties background-image and display:inline for the LIs, which display nicely on larger screens. Unfortunately, when viewed on mobile devices, the icons are cut off. My question is whether ...

Can you explain the significance of the "row" class in Bootstrap, how it differs from containers, and how it interacts with col-***-*?

I've been browsing through the guide found at http://getbootstrap.com/css/ and I'm having trouble grasping the purpose of the "row" class. I experimented with some examples provided in the guide like: <div class="row"> <div class="c ...

execute the function of the recently added button

There is a button with the id "openWindow" that opens a window when clicked. <button id="openWindow">Open Window on Click</button> A jQuery code changes the button id to "closeWindow" and sends an alert message saying "Open." $( "#openWindow ...

Capturing keydown events exclusively in the topmost layer of the HTML document

Currently, I am developing a web application that includes an underlying HTML file with some JavaScript functionality that I cannot modify. In my code, I create a layer on top of this page using CSS with z-index: 1000;. However, I am facing an issue where ...

Leveraging the power of JavaScript Math methods to dictate the Co-ordinates of HTML Canvas .fillRect

Greetings to everyone! I have dedicated my entire evening to understanding how to implement the (Math.floor(Math.random()) function as the coordinates for the .fillRect method on an HTML canvas element. Despite searching through this website and various ...

Having trouble with Gulp JS and CSS minification where existing minified files cannot be replaced

I've hit a roadblock in trying to resolve my search and google issue. My current challenge involves Gulp and cssmin. I can't seem to pinpoint the cause of an error. My aim is to have both the original CSS files and their minified versions in the ...

Scouring through the text to find a specific word and bring it to the forefront

I need help creating a PHP script that can analyze a text input, which could be an extensive essay, and search for a specific word entered by the user. The script should display the entire text with the searched word highlighted whenever it is found. < ...

In order to successfully automate the task, I must locate the correct xpath that allows me to interact with the next button on the

<button id="79436c61930112002b29d457b47ffbfa_next" class="list_nav btn btn-icon h_flip_content" title="" data-nav="true" name="vcr_next" data-original-title="Next page"> <span class="sr-only">Next page</span> <span class="icon-vcr-righ ...