The api allows me to change the width and the height but it does not allow me to move it on the center, the rigth…
You’ll need to take care of that using CSS on the page that has the iframe. You could let the api continue to append the iframe to the body and target your CSS to it, such as with a child selector (body > iframe). The approach I would take is using the api’s “parent” option to pass in an element on my page to append to instead of defaulting to appending to the body and using css to move my element where I need.
thank you a lot. I’m a little lost. Do you have a code example in order that I understand ?
You’ll want to understand the different way to center an element horizontally using css and pick whatever suites your layout best. This is a good guide: https://css-tricks.com/centering-css-complete-guide/. Lots of what’s on css-tricks is good for immediate practical css use.
thank you a lot, I understood and it works perfectly!