Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
text-align: center;
Correct. But inline elements exist only in HTML documents. However, there is no HTML document inside the OP's [tt]iframe[/tt], only the bare image. Are you sure you can apply CSS to it ?Chris said:Images are inline elements
I tried it out. Although I was sure will not work. Actually, I am sure there is no way to solve this with HTML and/or CSS.Chris said:No idea, not something I've tested and the TS is going to learn more by trying it rather than having a ready made solution "spoonfed" to them.
document.querySelector([green][i]'iframe[name="content2"]'[/i][/green]).contentWindow.addEventListener([green][i]'load'[/i][/green],[b]function[/b](e){e.target.body.style.textAlign=[green][i]'center'[/i][/green]},[b]false[/b])