Footer designed with HTML and CSS appears narrower when viewed on an iPhone

My website is displaying fine on all browsers except for iPhone. On the iPhone, the footer width appears shorter than it does on web browsers. Can anyone else confirm this issue?

Below is the code I am using:

<div class="footerWrapper">
<div class="footer">

<div class="footerNav">
<ul>
<li><a href="home.php">Home</a></li>
<li><a href="about.php">About Us</a></li>
<li><a href="gallery.php">Gallery</a></li>
<li><a href="services.php">Services</a></li>
<li><a href="contact.php">Contact Us</a></li>
</ul>
</div><!--footerNav-->

<div class="footerContact">
<ul>
<li>Email - <span style="text-transform:lowercase"><a href="mailto:<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="46232b272f2a06282934322e352e2934232a2728223525273623202f342b682527">[email protected]</a>"><a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="aacfc7cbc3c6eac4c5d8dec2d9c2c5d8cfc6cbc4ced9c9cbdacfccc3d8c784c9cb">[email protected]</a></a> | <a href="mailto:<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="c2a7afa3abaef082acadb0b6aab1aaadb0a7aea3aca6b1a1a3b2a7a4abb0afeca1a3">[email protected]</a>"><a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="26434b474f4a1466484954524e554e4954434a4748425545475643404f544b084547">[email protected]</a></a></span></li>
<li> | </li>
<li>PHONE - <a href="callto:+5555555555">555.555.5555</a> | <a href="callto:+5555555555">555.555.5555</a></li>
</ul>
</div><!--footerContact-->

Here's the CSS used for styling:

.footerWrapper{
    width:100%;
    background:#000;
    float:left;
    padding-bottom:20px;
}

.footerNav{
    padding-top:10px;
    margin: 0 auto;
    position: relative;
    width:1080px;
    z-index:1000;
}

.footerNav ul {
    list-style-type: none;
    margin: 0;
    padding: 0 0 0 8px;
}

.footerNav li {
    float: left;
}

.footerNav ul a {
    color: #FFFFFF;
    display: block;
    padding: 0 30px 0 0;
    text-decoration: none;
    font-size:36px;
    text-transform:uppercase;
}

.footer{
    margin: 0 auto;
    position: relative;
    width: 1101px;
    background-color:#888888;
    min-height:145px;
    opacity:0.44;
    filter:alpha(opacity=44);
}

.footerContact{
    margin: 0 auto;
    position: relative;
    width: 1200px;
    padding-top: 108px;
}

.footerContact ul {
    list-style-type: none;
    margin: 0;
    padding: 0 0 0 8px;
}

.footerContact li {
    float: left;
    color: #FFFFFF;
    display: block;
    padding: 0 30px 0 0;
    text-decoration: none;
    font-size:20px;
    text-transform:uppercase;
}

.footerContact Ul a{
    text-decoration:none;
    color:#FFFFFF;
}

The code might be lengthy, but any help provided would be highly appreciated.

Thank you in advance, J

Answer №1

Here's a quick update to Tony318's response. A possible solution could be:

if (window.navigator.userAgent.indexOf('iPhone') != -1) {
    //Implement custom code here for adjusting footer size on iPhone
}

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

Combining Angular and Bootstrap: how to create two overlapping divs

Looking to enhance a project in Angular 15 + bootstrap 5 by creating two draggable divs where the lower one can be vertically resized to overlap the upper one? I've managed to set up most of it, but when dragging the lower div, its transparency makes ...

Modifying the default actions of Material UI components: A step-by-step guide

In my project, I am using materialUI to showcase an Expansion Panel. Here is the code snippet: import React from 'react' import ExpansionPanel from '@material-ui/core/ExpansionPanel'; import ExpansionPanelSummary from '@material-u ...

Numerous animated elements within A-frame

Is there a way to incorporate animation into an A-Frame glTF model, causing it to smoothly move 5 spaces to the left and then 5 spaces forward? Below is my current code: <a-gltf-model color="#FFFFFF" width="1" height="1" de ...

Displaying a dynamic dropdown menu within a table column using a PHP foreach loop

Currently facing a challenge in constructing a table using HTML and PHP. I've completed the table setup, but now I want to incorporate a dynamic dropdown in one of the columns. However, I'm struggling with combining PHP, HTML, and the necessary F ...

A simple way to set a button as active when clicked in a form element

Is there a way to activate the input button with an Onclick event? <div class="paForm-right"> <form onsubmit="" name="form1" id="form1" method="post"> <input type="submit" class="paForm-choose" id="paForm-bottom-vk" value="Visi ...

Is it possible to use calc with the display property set to table-cell?

I have created a structure using divs to mimic table elements for an entry form. My goal is to make the left column, where field labels are located, 50% wide with an additional 2 em space to accommodate an asterisk marking required fields. The right column ...

Having trouble obtaining the video link from a tweet on Twitter using Selenium

Struggling to extract video clip download/streaming URLs from Twitter using Selenium in Python. Can't seem to find the direct source URL on the page. Check out this tweet for reference: https://twitter.com/Tesla/status/1711184330792579093 Is there a ...

The Page is Not Able to Scroll

Occasionally, my app stops allowing scrolling of the entire page length. Everything will be working fine for a while, but then out of nowhere, the page suddenly becomes un-scrollable and you can only interact with the section currently visible on the scree ...

PHP programming language for opening, editing, and saving HTML files

Trying to use PHP to open an HTML file, remove the content of a specific div (class Areas), and then save it. $dom = new DOMDocument; $dom->loadHTMLFile( "temp/page".$y.".xhtml" ); $xpath = new DOMXPath( $dom ); $pDivs = $xpath->query(".//div[@class ...

The versatility of Node.js' hbs module as an engine

Recently diving into the world of node js, I stumbled upon the hbs module. In this code snippet below: app.set('view engine', 'html'); app.engine('html', require('hbs').__express); I'm curious to know more abo ...

Positioning close icon on Bootstrap 4 tab

I need help aligning a close icon for a BootstrapVue tab with Bootstrap 4.2 in the top right corner. Here is my code: <b-tab v-for="order in tabs" :key="order.id"> <template slot="title"> <span class="float-left">{{ order.nam ...

retrieve the data attribute of a link within an unordered list

I have been attempting to extract a data attribute from a link within a list when it is clicked on. $(document).on('click', "ul.pagination li a", function(e) { e.preventDefault(); var page = $(this).attr("page"); var article_id = get ...

Collapsing or expanding the Material UI accordion may lead to flickering on the page

import React from "react"; import { makeStyles } from "@material-ui/core/styles"; import Accordion from "@material-ui/core/Accordion"; import AccordionDetails from "@material-ui/core/AccordionDetails"; import Accordi ...

When I type in the TextBox, the CheckBox value should be deactivated if it is unchecked

Whenever I attempt to input text into the textbox associated with my checkbox, the checkbox automatically becomes unchecked. How can I prevent this from happening? <span id="TRAVEL_TYPE_1"><input id="TRAVEL_TYPE_0" type="checkbox" onclick="Update ...

Using a pre-existing HTML template in an Angular project

Looking at my html template file named range-details-dialog.tpl.html <div class="modal-header clearfix text-left"> <h5>Update Range</h5> </div> <div class="modal-body"> <form name="form" ...

Utilize images inputted via an HTML DOM file uploader within p5.js

I'm facing a challenge with allowing users to upload their image file through a DOM file uploader (<input type="file"></input>). Once the image is uploaded, I'm unsure of how to transfer it to JavaScript and process it using p5.js. Ho ...

Focus on the image displayed through instafeed.js

Using the Instafeed.js plugin to create a dynamic Instagram feed. Everything is working smoothly, but I'm struggling to center the images being retrieved by Instafeed. Despite trying various methods, I can't seem to get it to display as desired. ...

`Text-overflow ellipsis should function consistently across both Firefox and Chrome browsers`

A design has been created to showcase captions for articles and their respective statuses. The article name box has a fixed width, with text-overflow:ellipsis applied to trim excessively long names. Additionally, a light grey dotted line is added at the en ...

The function in_array() in PHP is not functioning as anticipated

I'm currently working on a feature that involves a multiple select drop-down list, and I'm trying to figure out how to display the selected values on an edit form. I seem to be having issues with the in_array() function not behaving as expected. ...

Is it possible to achieve Bootstrap 3-style for the mobile navbar menu in Bootstrap 4?

In the world of Bootstrap 4 https://i.sstatic.net/bMSOK.png Comparing to Bootstrap 3 https://i.sstatic.net/RVITm.png Seeking to replicate Bootstrap 3's menu in Bootstrap 4? This code snippet showcasing Bootstrap 4's menu can be found at : & ...