When I tried to open a website using the "target=_blank" attribute on the Chrome mobile version for iPhone, I noticed some strange viewport behavior

[Update] I encountered the following issue:


I once had a website.

It functioned well, except when opened in a new tab with target "_blank."

When accessing the site directly, everything appeared normal enter image description here

However, when accessed via a new tab, the buttons at the bottom were covered. enter image description here

I assumed it was a viewport issue but I am unsure how to address it.

Can anyone offer suggestions on how to resolve this problem?

Answer №1

Consider assigning a z-index to the button element.

.btn{
  z-index:999;
  }

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 is the best way to align two divs horizontally using CSS?

.navbar { overflow: hidden; background-color: antiquewhite; position: absolute; top: 0; width: 100%; } .navbar a { float: right; display: block; color: Black; text-align: center; padding: 14px 16px; text-decoration: none; font-size ...

Stylish Zigzag Border with a Patterned Background

Recently, I've been experimenting with creating a header that features a unique zigzag border. Traditionally, this effect is achieved using images to achieve the desired look. (1) I am curious if there is a way to implement a cross-browser compatible ...

Enabling the "visible overflow" feature in my animation

Apologies if the terminology in this question is not quite on point - I'm struggling to find the right words. I've got a collection of circular divs styled with CSS, displayed in a row. When these circles are clicked from left to right, they ani ...

Creating a Toggle Function for the Hamburger Menu in JavaScript

Struggling to create a responsive navbar with a hamburger menu toggle. Followed an online tutorial and managed to get everything working, except for the toggle functionality of the menu. Clicking on the icon does nothing. Being new to this, I'm not su ...

What is the process for importing a JSON file into an HTML table?

I have been struggling to pull data from a JSON file into an HTML table. Despite following various posts and tutorials, nothing seems to work. I am unsure if the functions are incorrect or if I am not implementing them correctly. Here is the content of my ...

JavaScript query-string encoding

Can someone clarify why encodeURI and encodeURIComponent encode spaces as hex values, while other encodings use the plus sign? I must be overlooking something. Appreciate any insights! ...

Using jQuery to pass UI positions as percentages instead of screen positions

Currently, I have implemented the following code to send $_GET values to a PHP page: $.get('/includes/sticky_notes/update_position.php',{ x : ui.position.left, y : ui.position.top, z : zIndex, id : parseInt(ui. ...

Smooth scrolling in JavaScript can lead to unexpected jumps when using scroll-margin-top

I am currently working on implementing smooth scrolling into my website using JavaScript. However, I have run into a problem with CSS property scroll-margin-top causing a sudden jump at the end. The CSS I am using for scroll margins looks like this: class ...

Arranging an array of objects in Angular based on the value inside each object

How can I retrieve objects by filtering the key value within the object? In the example below, I need to extract data only with session_id:23. data = [{ name: "First Name", session_id : "23", login: "date" }, { name: "Second Name", ...

What is the best way to relocate the box within this HTML/CSS document?

Looking at this specific HTML webpage <html> <head> <title>CSS Structure</title> <link href="layout.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="header">Header 900x100 px</div> ...

Is Angular4 preloaded with bootstrap library?

I started a new angular4 project and wrote the code in app.component.html <div class="container"> <div class="row"> <div class="col-md-1">.col-md-1</div> <div class="col-md-1">.col-md-1</div> <div class ...

enclosing a fixed or absolute div within a relative div

I am trying to ensure that the text on my website remains below an absolute positioned menu. The menu is overlaying a div with text, and I want the layout to appear as if the menu was relatively positioned. HTML <nav id="s-nav-wrap"> <di ...

Implementing the switchClass function on a parent class when hovering over a child class, while ensuring that only the specific divs are targeted and not others with the

Currently using the .switchClass function on both the .container divs whenever I hover, causing all child1 elements within these containers to change from 100% width to 40% width. However, I only want this switch to occur on the specific container that I&a ...

Embeds and hyperlinks across various web pages

I created a webpage called A.html. Within this page, I have three other web pages named a1.html, a2.html, and a3.html. The goal is to always have a1, a2, and a3 open within an iframe inside A.html. Now, I have another webpage B.html which includes links t ...

My PHP script is not functioning correctly with Ajax

I am currently working with HTML5, PHP, and JavaScript. My goal is to implement Ajax in order to display the sizes of a selected product when an option is chosen from #productoSeleccionado. However, I believe that there may be an issue with my code as the ...

How can I transform a multidimensional array in PHP into a nested list in HTML?

I am working with an array that is nested and can be "endless" due to the complexity of family trees. Here is a simplified example: Array ( [id] => 121 [name] => Very Important Dogs Bowey Showey [gen] => 0 [mother] => Array ...

Showing a 2D array in HTML using ngFor loop

I need to display a list of arrays in an HTML p-table. Here is the array list: [Array(2), Array(2), Array(2), Array(2), Array(1)] 0: (2) ["abc", "def"] 1: (2) ["ghi", "jkl"] 2: (2) ["mno", "pqr"] ...

Why isn't Google Map showing up in my HTML <div> section?

I am currently working on a web page that consists of two containers. The mainmapdiv container covers the entire page, while the mainhomediv container is positioned on top of the mainmapdiv. My goal is to hide the mainhomediv container and show a Google Ma ...

Utilize a fresh font style and replace the font family components in @mui/material with the new

Looking to bring in a fresh font family stored in a fonts directory and replace the existing mui base font family. import { responsiveFontSizes, createTheme } from '@mui/material'; import NEWFONTFAMILLY from '../fonts/something.otf' c ...

Can Phonegap be utilized to port a PlayN game to iOS?

PlayN seems like a fantastic tool for creating Html5 games. I'm curious to know if there are any plans to ensure that the html/javascript output is compatible with Phonegap, ultimately allowing for the creation of an iOS executable? ...