How to position the iframe below according to the position I want on the screen?

Asked

Viewed 1,666 times

-1

How to position the iframe below according to the position I want on the screen?

<div>
            <iframe
                    width="1100"
                    height="500"
                    id="processoControleExterno"
                    src="www.google.com"
                    scrolling="no"
            >
            </iframe>
</div>
  • 2

    Welcome to Stack Overflow in English! Welcome to [en.so]. Your question is very broad, the standard of the community are objective questions and have at least one correct answer, as can be seen in the [help] link [Ask]. This question of yours, in addition to being very broad, may give rise to questions. Take a [tour] tour and then you can [Dit] your question so we can help you.

  • position:Fixed css

1 answer

0

<div id="iframe">
        <iframe
                width="1100"
                height="500"
                id="processoControleExterno"
                src="www.google.com"
                scrolling="no"
        >
        </iframe>
</div>
<style>
    #iframe{
        position: fixed;
        top: 10px; //ou onde você quiser
        left: 10px; //ou onde você quiser
    }
</style>

Browser other questions tagged

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