Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9304195
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T23:39:29+00:00 2026-06-18T23:39:29+00:00

I have tried a solution that I found on this website. However, it did

  • 0

I have tried a solution that I found on this website. However, it did not work for me. I am thinking there is a script that is setting this somewhere else so I need to add some code in the page to overide the style.

I tried this:

<script type="text/javascript">
    $(document).ready(function () {
        $("#frame1").width(578);
        $("#frame1").height(326);
    });
</script>

However, the html still comes out like this:

<iframe frameborder="0" src="http://player.vimeo.com/video/20657168?color=fc030f" style="width: 500px; height: 281.25px;"></iframe>

I want the width to be 578 and the height to be 326. Here is the website: http://beckindesigns.tumblr.com/

P.S. If I add a class or ID it strips it from the html. I am using Tumblr..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T23:39:30+00:00Added an answer on June 18, 2026 at 11:39 pm

    It will work if you add id="frame1" to your iframe.

    <iframe frameborder="0" id="frame1" src="http://player.vimeo.com/video/20657168?color=fc030f" style="width: 500px; height: 281.25px;"></iframe>
    

    The $("#frame1") will select the element with the id attribute frame1. For reference: jQuery Selectors and ID Selector.

    Update: Since you said that the ID is getting stripped out, you can just change how the selector is working, and apply it to all iFrames:

    <script type="text/javascript">
        $(document).ready(function () {
            $("iframe").width(678);
            $("iframe").height(526);
        });
    </script>
    

    If you have multiple iFrames on page and you don’t want them to be the same size, you can use the :eq(index) selector, which will match on the zero-based index. So if you have two iFrames on the page, and only want to change the second, use:

    <script type="text/javascript">
        $(document).ready(function () {
            $("iframe:eq(1)").width(678);
            $("iframe:eq(1)").height(526);
        });
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I can't get this to work, and I have tried every solution that I
I have tried the solution found in this post to disable ARC in AFNetworking
I've tried to search for a solution for this, but have had no joy:
I've tried reading the existing posts on this subject, but haven't found a solution
I have tried all the solutions that have been provided including using PRAGMA but
gem install heroku failed with following message and I have tried the solution here
I have tried to look everywhere for a solution but I can't seem to
I tried to find an easy solution for the following. I have a main
I've tried to put together a solution from similar questions but have failed miserably.
I've tried Googling and searching stackoverflow, but have yet to find a solution too

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.