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 9223933
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T04:11:35+00:00 2026-06-18T04:11:35+00:00

I had a div containing a bunch of tags with corresponding css, all of

  • 0

I had a div containing a bunch of tags with corresponding css, all of which needs to be moved into an iframe. However, when I do that, the iframe version looks different.

I have already copied the css that was applied to those parts of the parent page into the stylesheet for the iframe. However when styling the border of the div -> iframe, it’s unclear which styles should be applied to the body tag of the iframe, and which styles should be applied the iframe tag in the parent page.

  • 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-18T04:11:37+00:00Added an answer on June 18, 2026 at 4:11 am

    You just need to give both elements the same style.

    HTML

    <iframe src="http://example.com" frameborder="0"></iframe>
    <div></div>
    

    Note: The frameborder attribute is essential for IE<9 to avoid the ugly looking 3D border.

    CSS

    iframe,div {
        width: 450px;
        height: 250px;
        border: 1px solid #ccc;
        display: block;
    
        padding: 0;
        margin: 10px 20px;
    }
    

    Here’s a fiddle containing that code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I had created one div window which is draggable,and created one child div (with
Below is one item in my page, which consists of the div containing two
I like to do something terribly simple Had a div that show only a
In Jquery how would i make it so that if i had a div,
If I had a div in HTML that had class=blah user_foo, whats the Match()
I had this idea... let's say I have a DIV that contains some text.
I was wondering if i remove a div which had div's inside of it
I am using working on web app which had a DIV in which latest
If I had a div, and wanted it to automatically scroll when its scrollbar
I had to maunally add some html within the sidebar div of html, but

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.