58 users online (0 members and 58 guests)  


  Results 1 to 4 of 4

Related

  1. iframe    Forum: HTML Forum
    Replies: 4
  2. HTML iframe Question    Forum: HTML Forum
    Replies: 5
  3. iframe    Forum: HTML Forum
    Replies: 2
  4. Iframe help    Forum: HTML Forum
    Replies: 2
  5. iframe.....    Forum: HTML Forum
    Replies: 4
  1. #1
    tbrueland's Avatar
    New User

    Status
    Offline
    Join Date
    Dec 2008
    Posts
    2

    question about iframe

    Hi all,

    I am sitting here and designing a web page, and now I have a weird question. I have a picture (800x600) with a tv centered on a page, and the thing is that I want to have a inline frame inside the tv. I havent made any code yet, because I have no clue how to do this. I am pretty good with html and I have made iframes before, but not as specific as this.

    Can anyone help me with this? It doesn't seem that I can add links here now, but I wil try to formulate the link as best as i can.

    brueland.net/test/index.php

    Thanks in advance

    -Tommy

  2. #2
    tbrueland's Avatar
    New User

    Status
    Offline
    Join Date
    Dec 2008
    Posts
    2

    Re: question about iframe

    Here are the coords for the imagemap...coords="146,126,431,342"

  3. #3
    raperil's Avatar
    New User

    Status
    Offline
    Join Date
    Dec 2008
    Posts
    2

    Re: question about iframe

    ok, this is a code I use.

    <div style="position:absolute; top:30; left:265px;">
    put the iframe code here
    </div>


    its pixels from the top and from the left of the page. keep working on it until you find the perfect position for your iframe.

  4. #4
    jthayne's Avatar

    Status
    Offline
    Join Date
    Aug 2008
    Location
    Texas
    Posts
    508

    Re: question about iframe

    Quote Originally Posted by raperil View Post
    ok, this is a code I use.

    <div style="position:absolute; top:30; left:265px;">
    put the iframe code here
    </div>


    its pixels from the top and from the left of the page. keep working on it until you find the perfect position for your iframe.
    This is only partially correct. The problem is when the window gets resized. The background image of the TV will move, but the ifram will stay the exact same number of pixels from the left.

    There are two ways around this:

    1. Set everything to flush off the left side of the screen. There will be blank space on the right, but all your positioning will work regardless of the window size.

    2. Create a container div around all your code. Give this div a fixed width and center it on the screen (use "position: relative" and "margin: 0 auto"). All positioning on items within this div will be based on the edges of the wrapper causing any resizing of the window to not affect the iframe position at all.



Tags for this Thread