Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts

    iframe background difficulty

    I use an iframe in a dynamically generated page. If I use the same background as the page, it looks a bit messy where the edge of the iframe meets the background of the page. I have tried for the iframe, background : transparent; but it doesnt work. IIRC it shows up white.

    I presently have the background in the iframe (which is an htm page), set to be the same as the main htm page.

    see it here (below the big image)

    any tips to have a consistent background throughout the whole htm page.

    here's hoping
    Last edited by bazz; 01-13-2004 at 05:05 PM.
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link

  • #2
    Senior Coder
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    1,963
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You could try assigning an initial position of 0,0 to the I-frame BG...
    This would then align it to the viewport (same as main BG)
    Although I think that assigning a starting point invokes no-repeat aswell, but hopefully not (why the hell would it?).

    Have a read of Eric Meyer's article , Your answer is in there somewhere.

    P.S. Your site has come along way since you first posted it, but the padding in the header isn't even above and below the text/images.
    Oh, and personally I would ditch the tiled BG img all together, way too 1996

    I take no responsibility for the above nonsense.


    Left Justified

  • #3
    Regular Coder ArcticFox's Avatar
    Join Date
    Jan 2004
    Location
    Vostok Station, AQ
    Posts
    602
    Thanks
    35
    Thanked 3 Times in 3 Posts
    Try adjusting the position of the background in your iframe using css.

    I had the same problem:
    http://arctic.ithium.net

    All the iframes on my site had to have the BG positioned pixel-by-pixel until it all matched up; a REAL pain, but it works.
    <div> - putting your mind in a box since 1997

  • #4
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    so 1996? Plain gren of a similar shade then?

    I'll read the article soon. Thanks both.
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •