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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T06:15:11+00:00 2026-06-15T06:15:11+00:00

I am doing a website layout for a company who uses IDevAdManager for rotating

  • 0

I am doing a website layout for a company who uses IDevAdManager for rotating ads on their site. Unfortunately, I am not much of an expert in that field, so I can’t give much on that. What I can say for sure though, due to the nature of the generator, the source inside the iframes it generates are not editable by me.

Now, here is my problem.

I am trying to make their new website HTML5 compliant, but I have reached an interesting issue.

When it comes to adding the iframes from the ad rotator, it generates all of the old, depreciated tags used by previous implementations of HTML.

Obviously, most of this is removable with CSS. All except, however, for the marginheight and marginwidth attributes.

Here is where I reach my problem. There does not seem to be a CSS equivalent to either marginheight or margin width, and there is no way to access the source within the iframes. However, leaving them out prevents the inner content from lining up properly.

I am hoping to find a solution that is both valid HTML5, and solves my problem.

Does such an option currently exist? Or will I have to use the deprecated tags until a solution is designed?

  • 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-15T06:15:12+00:00Added an answer on June 15, 2026 at 6:15 am

    Actually this is a valid question. Unfortunately it turns out that the marginheight, marginwidth and frameborder are properties of the iframe element itself, not the element’s style property see http://www.w3schools.com/jsref/prop_frame_marginheight.asp

    So, for example, you can do this in JavaScript:-

    document.getElementById("SomeIframe").marginheight = "0";
    

    but you CANNOT do this

    document.getElementById("SomeIframe").style.marginheight = "0";
    

    and setting the margin has NO EFFECT (i.e. you will still get the default margin in the iframe element):-

    document.getElementById("SomeIframe").style.margin = "0";
    

    So the answer to cbright6062’s question is that there is no way to set the marginheight, marginwidth and frameborder properties of an iframe in a style sheet.

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

Sidebar

Related Questions

I'm doing the migration of a site, from MovableType to WordPress. The website contain
Hello, I am doing a website using drupal 7 and I do the registration
I'm a bit lost, one of my developer co-worker is doing a drupal website,
i am doing a mobile version of a website using JQuery Mobile and JSON
Our website runs the user's input via HtmlTidy to clean it. Apparently while doing
I am doing some testing for a very large website, created many different developers.
I am doing a hobby project to scrape the content of an ASP.net website
I am coding a E-commerce website/admin interface for a client. They are doing some
So, I am doing my mothers small business website to save her money and
This is my first time doing VB :-) I've inherited a web site, which

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.