This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 4

Inline CSS in iframe


  1. Dialoguenet
    Member

    Hi, I try to control the height of my form embedded with the JS code. I know that I can control it with that variable : var __machform_height = 279;

    But the height I set is erased by the inline CSS added to the generated iframe HTML tag (style="width: 100%; border: none; height: 521px;")

    How can I control this hi level CSS height?

    There is the generated code :

    <iframe height="279" frameborder="0" src="https://domaine.com/formulaire/embed.php?id=16234"><a href="https://domaine.com/formulaire/embed.php?id=16234">View Form</a></iframe>
    Posted 9 years ago #
  2. yuniar

    When you are using the javascript code, the script will override any height indeed. If you need to set a fixed height, you'll need to use the iframe code.


    MachForm Founder

    Posted 9 years ago #

RSS feed for this topic

Reply