Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author mdempfle

    (@mdempfle)

    It would work if you would not have the width set to 100%. Set the width of the iframe to your content width and then you can canter the iframe as currently is is the whole page already.

    Best, Michael

    Thread Starter Kevinn02

    (@kevinn02)

    I set the width: 1600 and height: 385. and add custom css:
    #advanced_iframe {margin-left: auto; margin-right: auto; }

    Still doesn’t work. What am I doing wrong?

    Plugin Author mdempfle

    (@mdempfle)

    You have to check all surrounding elements if they fit.
    I have seen a max-width:100% which is a problem and also width 1600 is way to much. The size should only be the size of your content.

    Best, Michael

    Thread Starter Kevinn02

    (@kevinn02)

    How can I see what the right size of my content is?

    I am sorry I don’t understand.

    Plugin Author mdempfle

    (@mdempfle)

    400 pixel would be fine.
    And then you have to center the content of the surrounding div.
    I just tested this and this works fine.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Center the iframe???’ is closed to new replies.