Page size different HTML/CSS screens

Asked

Viewed 351 times

-1

My doubt is in creating a page in html and css and that same page be opened on different screens.

For example, now I have a little problem.

HTML:

<iframe id="contentframe" width="300px" height="350px"  src="demo_iframe.htm" name="iframe_a"></iframe>

CSS:

#contentframe{
position: absolute;
left: 76.5%;
top: 130px;
}

If you open a page on a large screen, the margin is larger than a small screen. How can I fix this? I want the same margin to always appear regardless of the screen that opens the page.

1 answer

1

Use this to control width and height and other properties:

iframe, object, embed {
        max-width: 100%;
        max-height: 100%;
}

Browser other questions tagged

You are not signed in. Login or sign up in order to post.