Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Design Iframe full screen

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #244875
    dcotlgaming
    Participant

    Hi,

    How can I make the IFrame the size between the header and footer?

    http://codepen.io/DcoltGaming/pen/AXGpxr

    #244877
    ztgst
    Participant

    You can add iframe{min-height:600px !important;}, the ! important it’s maybe because your script is set the min-height of the iframe as 300px.

    #244886
    giudev
    Participant

    I guess header and footer have a fixed height, if so the height of your iframe should be:
    height = (viewport height) – (header height) – (footer height)

    In css this could be translated in:

    iframe {
        height: calc( 100vh - 55px - 51px);
    }
    

    Also you have to deal with the <p> tag “Powered by 123ContactForm”.
    Either remove it or fix its height and add it to your calc formula

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Design’ is closed to new topics and replies.