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:
Suggestions for creating great content, from the experts.
A place to share course modules, lessons and assignments or question banks.
Quick Code Snippets
Short, reusable bits of code for use in algorithms and grading.
Ideas for teaching with Maple T.A., and unique applications of questions and assignments.