Results 1 to 3 of 3

Thread: Changing the location of iframes?

  1. #1
    Join Date
    Aug 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Changing the location of iframes?

    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

  2. #2
    Join Date
    Mar 2007
    Location
    New York, NY
    Posts
    557
    Thanks
    8
    Thanked 66 Times in 66 Posts

    Default

    You can use an absolute positioning of the iframe to give an exact position [left and top] to position the frame in.

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

  3. #3
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •