Replacing an iframe with an object

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Graham J

    Replacing an iframe with an object

    Hello,

    Despite GoLive 6 still not wanting to acknowledge its existence, I have been
    using a 468x60 IFRAME for the single task of displaying advertising banners
    that are randomly generated by a remote cgi script. However as I am in the
    process of switching to doing things 'properly' (stopping abusing tables for
    layout etc) I believe that I should ideally be replacing IFRAME with an
    OBJECT and using the DATA parameter (GoLive doesn't know that one either,
    bless its little cotton socks). Is this correct thinking or should I being
    doing it another way? Server side stuff is not an option.

    The problem I had is that the 468x60 OBJECT was getting scrollbars that I
    didn't want it to have and I didn't seem to be able to stop this happening
    using css in the parent document (but that could be my inexperience
    showing). I found in IE6(Win) that having the cgi script generating the
    advertising page with a 'body { margin: 0px; overflow: hidden }' dealt with
    that which seemed to make sense. However in Opera 7.03(Win) I still seem to
    see some slight margins and the scrollbars wont go away.

    Now is this just Opera being a little buggy or should I be looking to do
    more to bend it to my will?

    Thanks,

    Graham


  • Graham J

    #2
    Re: Replacing an iframe with an object

    > Now is this just Opera being a little buggy or should I be looking to do[color=blue]
    > more to bend it to my will?[/color]

    Whoops, I'd somehow never noticed before that Opera has non-zero padding on
    the body by default. Zeroing that does the job though I still don't see why
    it added scrollbars.

    More of interest is that when Internet Explorer reads the embedded document
    it splats any <TITLE> out of that on the title bar. That just seems plain
    wrong.


    Comment

    Working...