The 40px spacing applies to the iframe for the entire HTML question. Whilst your trick worked for me, I'd suggest moving all of your Question Text to inside the Question HTML: part of the response area:
This site is jointly run by users from TU Wien, TU Delft, the University of Turin and the University of Birmingham.
This forum aims to provide support by connecting users together. For official Maple T.A. and Möbius support, please see https://www.digitaled.com/contact/.
Waterloo, ON Canada