iFrame - Transparent background.

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

    iFrame - Transparent background.


    Is there any way to make the background of an iFrame (object) transparent?
    The iFrame is in a 'floating' DIV and I want the underlying HTML page to
    show through as a background.

    Thanks,

    gsb


  • Berend de Boer

    #2
    Re: iFrame - Transparent background.

    >>>>> "gsb" == gsb <gsb@QWest.ne t> writes:

    gsb> Is there any way to make the background of an iFrame (object)
    gsb> transparent? The iFrame is in a 'floating' DIV and I want
    gsb> the underlying HTML page to show through as a background.

    If you use a background image that is a PNG with an alpha channel I
    suppose it works fine. Style:

    background: transparent url(background. png) repeat;


    --
    Regards,

    Berend. (-:

    Comment

    • gsb

      #3
      Re: iFrame - Transparent background.

      [color=blue]
      > If you use a background image that is a PNG with an alpha channel I
      > suppose it works fine. Style:
      >
      > background: transparent url(background. png) repeat;[/color]

      Nope. Doesn't seem to work.
      It's like the iFrame sets up a canvas: you can paint on it all you want to
      but you can not see through it.

      Thanks,

      gsb


      Comment

      • Unregistered

        #4
        Re: iFrame - Transparent background.




        Unregistered
        -----------------------------------------------------------------------
        Posted via http://www.forum4designers.co
        -----------------------------------------------------------------------
        View this thread: http://www.forum4designers.com/message30341.htm

        Comment

        • Unregistered

          #5
          Re: iFrame - Transparent background.


          <iframe src="qwe.htm" width="250" marginwidth="10 " height="250
          marginheight="1 0" scrolling="auto " allowtransparen cy="true
          style="position :absolute; left:50px; top:50px"></iframe>

          a script like that should work just fine

          Unregistered
          -----------------------------------------------------------------------
          Posted via http://www.forum4designers.co
          -----------------------------------------------------------------------
          View this thread: http://www.forum4designers.com/message30341.htm

          Comment

          • Thomas 'PointedEars' Lahn

            #6
            Re: iFrame - Transparent background.

            gsb wrote:

            Please include a short attribution line next time for your readers to
            see who wrote what.
            vvvvvvvvvvvvvvv[color=blue][color=green]
            >> If you use a background image that is a PNG with an alpha channel I
            >> suppose it works fine. Style:
            >>
            >> background: transparent url(background. png) repeat;[/color]
            >
            > Nope. Doesn't seem to work.
            > It's like the iFrame sets up a canvas: you can paint on it all you want to
            > but you can not see through it.[/color]

            It works in working UAs, even without the image. It does not work
            either way in IE.

            For IE, you need to put the IFRAME as child of a block element, say a
            DIV, format this and the formatting will be inherited by the IFRAME.

            BTW: You are off-topic, try comp.infosystem s.www.authoring.stylesheets


            PointedEars

            Comment

            Working...