The problem of a responsive iframe persisting with a scroll bar and failing to scale

I am struggling to make an iframe responsive as I'm still seeing scroll bars on two sides and the interactive image isn't adjusting properly...

It appears that the interactive HTML, which includes a map with hover states/pop ups, was created using an Adobe product

This is where the iframe is located:


<div class="resp-container"><iframe class="resp-iframe" title="Sample" src="sample.html"></iframe></div>

Below is the CSS being used:

.resp-container {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%;
}

.resp-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display:block;
}

Could someone please advise if there's an obvious mistake in my implementation? When I change the height to 'auto,' the iframe inexplicably shrinks to 150px even though the canvas is supposed to be 800px

Thank you for any assistance in advance

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

Webpage Text Animation

This is the visual representation of my webpage: https://i.stack.imgur.com/tYq34.png I am seeking to implement a uniform animation effect for the text "Carlos Qiano" and "Lorem Ipsum", similar to the link below: https://i.stack.imgur.com/XVnBS.jpg Note: ...

What is the best way to ensure a div is always scrollable?

I am currently working with Angular 4 and Bootstrap 4 (alpha 6). I have implemented ngx-infinte-scroll to fetch data from the server when the user scrolls to the top or bottom of the div. The issue I am facing is that the user can only scroll when there ar ...

Is it possible to locate an element using two attributes in C# WebDriver?

Can anyone assist me in finding elements based on their class and the text they contain? I have attempted the following methods without success, so any guidance would be greatly appreciated (I prefer using CSS for selection, but XPath is also acceptable): ...

Utilizing Semantic HTML to Showcase a Product Comparison

As I prepare to showcase various products on a website for customers to choose from, each with its own name, description, and list of pros and cons compared to other products, I find myself unsure about the best way to structure the HTML. While headings a ...

Modifying the Header Background Color

Looking for help on my forum at The header background on my site needs fixing. I am trying to change the entire header background to match the color of the logo background, but I'm unsure what codes need to be adjusted. Can anyone provide guidance? ...

Resolve problems with modal views

My objective is to design a button that can enable/disable and close a modal view when clicked: // Button code: type="submit" class="btn btn-primary" data-dismiss="modal" ng-disabled="!newSong.name" ng-click="saveSong()" >Create --> Problem: After cl ...

``There seems to be an issue with AngularJS UI-view not loading properly when ngOptions

I am new to using Angularjs and I encountered an issue where including a select element on the page causes the ui-view not to load. The page appears blank, but when I remove the ng-model attribute from the select element, everything works fine. Can someo ...

Show the respective value names stored in my database for every choice available

I am facing a challenge in explaining what I need, but essentially, I want to showcase the name of the choice I selected from a list stored in the database. To provide more context, below is my select input: <select name="options[1][]" id="perso_1" cl ...

Activate the cursor to point

Can someone help me with this code snippet? .file-wrapper { cursor: pointer; display: inline-block; overflow: hidden; position: relative; } .file-wrapper input { cursor: pointer; font-size: 100px; height: 100%; filter: alpha(opacity=1); ...

Which option offers better performance: using IE filters or sprite/images?

Forgive me for what may seem like a foolish question, as I understand that the speed can vary depending on different factors such as image or sprite size. However, I am curious to know if anyone could provide insight into which option is faster. If possib ...

WP How can I modify a particular thumbnail size with a custom CSS class?

I have been attempting to use add_image_size for my custom thumbnail resize, but it seems to be having trouble maintaining the thumbnail size at 220 x 220. Instead, it keeps changing the height to 167 pixels. As a workaround, I am exploring a CSS-based sol ...

Variations in website layout appearance across various visits

I've encountered a strange problem while creating a template for my zencart ecommerce website. Often when I load the website, my menu breaks up and splits over two lines like this: What's puzzling is that if I refresh the page, it displays corr ...

Best strategies for obtaining information from the server

I am currently working on a webapp project and struggling with the decision of how to retrieve data from the server. Our frontend is built using AngularJS and HTML, while the backend includes NodeJS, MongoDB, Mongoose, and Express. We are also using ...

What mistake am I making that is preventing me from gaining access to object properties?

I've encountered an issue that has me stumped. The task at hand is as follows: Create an onload event handler named init() In init(), generate 3 JavaScript objects, each containing the same 6 properties (with Price being key) Set the initial values ...

The Xpath being used is not recognized in Selenium's automated browser

My goal is to automate interactions with a website by utilizing Chropath to identify absolute xpaths of elements and then engaging with them through selenium. However, I encountered an issue where selenium throws an error stating "Message: stale element re ...

Differences between Next.js Image and regular img tag regarding image quality

I am currently using Next.js and have noticed that my images appear slightly blurry when utilizing Next/Image. Below is a snippet of my code: <img src={url} width={articleWidth} /> <Image className="text-center" src={url} ...

Error: The term "Particles" has not been defined

I'm attempting to integrate code from a website into my project, but encountered an error when the particles failed to run after adding it. I downloaded and installed particle.js from "https://github.com/marcbruederlin/particles.js/issues" for this pu ...

Comparing the name and URL of a link using Selenium webdriver in C#

I am currently looking for ways to automate the testing of links on a Sharepoint site, ensuring they are connected to the correct URL. However, I have hit a roadblock when it comes to performing the comparison. After locating the links and adding them to ...

Text gradually appearing using a text button

I am currently trying to implement a fade-in effect on text in WordPress when another text line is clicked. I want the transition to be smooth and appealing, similar to a button. Despite my efforts, the method I found online does not seem to work correctl ...

Issue with Rails application using Bootstrap 5 vertical tabs - tab panel not populating after clicking beyond the first element

Hello, I am a beginner in the world of Ruby on Rails and I am encountering an issue with populating my tab panel with information from the database. While the tabs are displayed correctly, clicking on them only shows the information from the first tab (u ...