HTML: Scaling an iframe


#1

Hi, I’m pretty new to HTML so please keep your answers simple.
So I got this iframe that I wan’t to embed in my site but it is very small. I want it to be larger. How can I do this?
iframe src=“https://minecraft.nitrado.net/map/31.214.162.141”></iframe


#2

Hi,

You can define the width like so:

<iframe src="https://minecraft.nitrado.net/map/31.214.162.141" width="100%" height="100%">
</iframe>

or

<style>
    iframe{
     width:100%;
         height:100%;
    }
</style>

#3

Thank you I’ll try that.


#4

This topic was automatically closed after 20 hours. New replies are no longer allowed.