Hi to all I have the following problem:
I have a main page(html) and an iframe in it.

<html>
<body>
<iframe src="myIframe.html" />
</body>
</html>

In the iframe I have DIV element with a picture/or another element in it.
I need to center the DIV element in the iframe, the DIV in the end should be in the center of the iframe(client area), this iframe can be resize, so every time the iframe is resize I need to center the DIV according to the new client area.
How I can do this? How I can get the client area and center the DIV? I'm guessing that I will need also the size of the element(picture) to center it, rigth?
Thanks in advanced

messed up
script failed
gone to debug

You will need to apply some CSS rules to justify all the element's in the center of your page, including the page that will be loaded on the iframe.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.