Sign in

Blank Space between iframe and other elements

  • This topic has 2 replies, 2 voices, and was last updated 1 week ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #4602


    I have a problem with a blank space between my text and the iframe element:

    I’ve already tried a lot with “margin” and “padding” in the custom css tool but the space doesn’t get smaller. Here is the code:

    <p class="align-center">text...</p>
    <p><iframe width="100%" height="800" class="terminkalender-iframe" src="" title="Termin vereinbaren" frameborder="-100"></iframe>
    <script src="" type="text/javascript"></script>
    .post__iframe .terminkalender-iframe {
      position: relative;

    Does anyone have an idea? Thanks for any suggestions!


    Add the following CSS rules:

    .post__iframe::before, .post__video::before {
        padding-top: 0;




    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!


    it’s perfect! Thanks!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Blank Space between iframe and other elements’ is closed to new replies.