Methods for adapting iframe content to conform to my page dimensions

Is there a way to embed this iframe on my page and make it smaller in size?

The original webpage is located at

http://palweather.ps/temps/days/forecast/120

I attempted to adjust the size using the code below (I included #zoom=75 after the link but it did not have the desired effect)

<iframe border="0" frameborder="0" height="1300" name="map" src="http://palweather.ps/temps/days/forecast/120#zoom=75" style="width: 100%;" >Your browser does not support inline frames or is currently configured not to display inline frames.</iframe>

Answer №1

After hours of troubleshooting to make it compatible with IE8, 9, and 10, I finally found a solution that worked for me.

//html

<div class="wrap">
    This particular version is functional on FF 26, Chrome 32, Opera 18, and IE 9-11. 
    <iframe class="frame" src="http://time.is"></iframe>
</div>
<div class="wrap">
    <iframe class="frame" src="http://www.knowledgecity.com/activities/BUS1058-008/BUS1058-008.html"></iframe>
</div>

//javascript

.wrap {
    width: 320px;
    height: 192px;
    padding: 0;
    overflow: hidden;
}
.frame {
    width: 1280px;
    height: 786px;
    border: 0;
    -ms-transform: scale(0.25);
    -moz-transform: scale(0.25);
    -o-transform: scale(0.25);
    -webkit-transform: scale(0.25);
    transform: scale(0.25);

    -ms-transform-origin: 0 0;
    -moz-transform-origin: 0 0;
    -o-transform-origin: 0 0;
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
}

http://jsfiddle.net/AwokeKnowing/yy8yb/

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

Enhance your deletion process by utilizing Ajax for smooth communication and incorporating a

When a user clicks on the delete ImageButton, I want to display a confirmation message. If they select 'Ok', then the deletion will proceed. If 'Cancel' is clicked, nothing will happen. <asp:ImageButton ID="ImageButton1" runat="serv ...

The div element is animated to open from bottom to top with a sliding effect, rather than the traditional top to

Within my component, there is a button and a div that contains an input element. The intended behavior is for the div to slide down when the button is clicked, revealing the input field. Clicking the button again should slide the div back up to close it. ...

Resolve the Prototype_Pollution vulnerability detected by Checkmarx

When executing the code line window.location.search.substring(1) with the word 'substring(1)', an error related to Prototype_Pollution occurs. This error is caused by assigning external properties without proper validation, which can lead to obje ...

Troubleshooting vague errors with uploading large files in Golang's net/http protocol

I've encountered a challenging error while uploading large files to a server built with Golang's default net/http package. The upload process is defined as follows: uploadForm.onsubmit = () => { const formData = new FormData(uploa ...

What could be causing this Promise to bypass the forEach loop?

I'm encountering an issue with this block of code. While attempting to return a Promise, I've noticed that during debugging, it seems to "skip" the forEach loop and rejects the function instead. Can you help me identify what might be causing this ...

The issue of nested form serialization not functioning properly in JQuery has been identified

I am currently in the process of developing a web application. One particular page within this application contains a form, called form1, and I am inserting another page with its own form, form2, inside of form1. Each form contains their own set of values. ...

Tips for concealing the scrollbar on Firefox while still allowing scrolling within a div container

Is there a way to hide the scrollbar in Mozilla Firefox without preventing scrolling within a specified div? I have tried using the following CSS, however, I do not want to include "overflow-x: hidden" in the div that already has a scrollbar. Additionally ...

Execute a personalized function when an array is updated or created in JavaScript

I have experience in adding custom properties to objects. For example, if I have a method called foo, const foo = () => { console.log('custom method'); } I can add the foo method to the Array prototype and use it with array variables by Arra ...

Why is align working fine while justify-content is experiencing issues?

When I try to center items vertically using the justify-content property with the flex-column applied, the align-items works correctly but the content doesn't respond on the Y axis. I have the align-items commented out because I only want to center on ...

Preserve the table's state even after submitting the form

My php page initially displays a table by default, which is: echo "<table class='tftable' border='1' id='table_L'>"; There is also another table: echo "<table class='tftable' border='1' id=&apos ...

Validating radio buttons in JS after submitting a form using PHP $_POST

I am dealing with a form that contains a variable number of radio buttons: <input id='create' name="post[]" type="radio" value="<? echo $newphrase; ?>" /> My goal is to validate the form to ensure that at least one button is select ...

Incorporating a File Attachment within a JSON Structure

Can a file attachment be included in a JSON Object? I am working on an HTML Form with text field inputs and a file attachment, and I would like to send all this form data (including the file attachment) as a JSON Object to the server. Are there any specif ...

Why is it that the vertical square bar is not appearing on my website?

I've been attempting to add a vertical bar that stays fixed to the top right corner of my screen, but for some reason, it's not showing up no matter what I try. Here is the CSS code I'm using for my site, everything seems normal except that ...

Utilizing mod_rewrite for Redirect Rules and Optimizing HTML Links

As I work on my new website, incorporating PHP into it has posed some challenges. The structure of the site involves URLs like /index.php?page=category_page, where the category represents a sort-of sub category or actual page. To simplify the URL, I'm ...

Is there a way to set columns as initially hidden in MaterialTable?

I have a MaterialTable with many columns, and some of them are not always necessary to display. I am looking for a way to hide these columns unless the user specifically selects them. I attempted to use the hidden: true property in the column configuratio ...

Using props in Vue with CSS modules: A comprehensive guide

row.vue <script> export default { name: "Row", data() { return { app: [ "row", "row-test", "flex-center" ] } }, template: ` <div :class="$module[app]"><slot&g ...

Creating white space around the entire page using CSS is a simple yet effective way to

I'm relatively inexperienced with CSS and HTML and I'm attempting to create a website layout with some white space surrounding it, similar to a border. I have come across many solutions on removing white space, but none on how to add it. Current ...

Once the fields have been reset using .val(''), they will remain empty until the page is refreshed

I have implemented Bootstrap Modal in my document to dynamically load a document. Within this Modal Window, I use ajax to store the values of two form fields into the database. Upon successful request, I reset the two form fields using .val(''). ...

Responsive design is achieved through the use of CSS media queries targeting the screen

I am facing some challenges with my WordPress theme and have a few queries. As a newcomer to WordPress, I find it difficult to grasp all the details. However, I believe your explanation will help me understand better. Here are the specific points that co ...

Leverage vuejs' this.$refs to work with multiple elements at once

I am working with 4 select elements: <div class="form-row"> <div class="form-group col-3"> <label for="stateSelect">Status</label> <select v-model ...