Log in

View Full Version : Changing the location of iframes?



kb11235
08-10-2009, 01:12 PM
I recently embedded an iframe of a form that I would like to use on my site. How can i change the location of the iframe on the page? It is currently overlapping other features of the site.

Thanks

JShor
08-10-2009, 02:02 PM
You can use an absolute positioning of the iframe to give an exact position [left and top] to position the frame in.



<iframe src="myframe.html" width="300" height="100" style="position: absolute; left: 200px; top: 200px;"></iframe>


HTH:)

Beverleyh
08-14-2009, 09:46 AM
Depending on your requirements, you might also need to add z-index:-1000; to the style= "... attribute in JShor's code suggestion.