Help on layout

Home Forums I need help Help on layout

This topic contains 1 reply, has 2 voices, and was last updated by  tg_support 2 weeks, 6 days ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #5570

    rts199yahoocomau
    Participant

    Hi Im new to all this what im trying to do is use iframe to import a page to fill my home page but the width is fine but for some reason the height i cant get it to expand to fill the page/screen , this is the page logicdex (dot) pro
    this is the snippet im using to bring it in

    <head>
        <style type="text/css">
            html {height:100%}
            body {
            margin:0;
            height:100%;
            overflow:hidden
            }
        </style>
    </head>
    
    <body>
        <iframe allowtransparency=true frameborder=0 id=rf sandbox="allow-same-origin allow-forms allow-scripts" scrolling=auto src="https://mcafeedex.com/#/erc20/?dex=whateverYourDexIDis" style="width:100%;height:100%"></iframe>
    </body>

    just cant get it to expand to fill the page
    any help would be awesome thanks

    #5682

    tg_support
    Keymaster

    Hello!

    I was checking the site. Your iframe already has 1000px so that is not the real problem about your content not getting 100% window height.

    Your iframe URL source at mcafeedex(dot)com has a fixed height (blue area is not fullscreen) so you need to modify styles on their side to make that blue area fullscreen.

    So if you apply CSS in your site, you will never be able to modify the CSS properties of the content inside the iframe, unless you use advanced coding solutions like:

    https://stackoverflow.com/questions/4724904/how-to-change-style-of-iframe-content-cross-domain

    I hope it helps!

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.