Minimum Height of an Iframe

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Can someone please tell me why the following two frames are not the same


<iframe style="width:50px; height:50px;"
src=" "></iframe>

<span style="width:50px; height:50px">
    <iframe height="100%" width="100%" src=" "></iframe>


It looks like when you put an Iframe into a div, it can't be shorter
than 150px.  I only put it in the div so I can manipulate the iframes
height and width via javascript.

Thanx in advance.

Re: Minimum Height of an Iframe

David Morris wrote:

Quoted text here. Click to load it

<span> is an inline element and thus:

(a) Does not have height or width that can be influenced by CSS (at least
without making it a block)
(b) Can not, in HTML, hold a <div> element. is your friend.

David Dorward       < <

Site Timeline