Question:

Can some one help with iFrame Positioning?

by  |  earlier

0 LIKES UnLike

My iframes are ready, but I can't position them? Can anyone help me?

 Tags:

   Report

4 ANSWERS


  1. As an alternative to placing your iframe within a positioned div, you can give your iframe element an id and use a style sheet to position it independently.

    something like:

    HTML OUTPUT:

    <iframe id="myFrame" ....></iframe>

    CSS OUTPUT:

    #myFrame {

    // style properties here

    }

    Style it however you want to. Using a div might be a bit cleaner though, it just depends on what you're trying to accomplish.


  2. the <DIV script

    <div style="position:absolute;

    left:70;top:109;">

    your iframe code here

    </div>

    (remove spaces)

    juat edit the left and top numbers ^^

  3. Put them in separate DIV's, which you can position either absolute or relative to other objects.

  4. here's what i normally do:

    <div class="something">

    <iframe src="http://whatever" width="300" height="250" frameborder="0" marginheight="0" marginwidth="0" align="middle" scrolling="no"></iframe>

    </div>

    and position that DIV the way you want

Question Stats

Latest activity: earlier.
This question has 4 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.