SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Wizard Wolf_22's Avatar
    Join Date
    Jul 2005
    Posts
    1,700
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Using an Iframe and need a background withough using the src attribute...

    I'm using the <iframe> tag in my site, and I would love to be able to have a background to it, but I don't want to have to use the src attribute...

    Do any of you know of any ways to do what I'm asking? Like, maybe theres a way to utilize an <img> tag inside the <iframe> brackets?

    Any help is thankful.

  2. #2
    The Mind's I ® silver trophy Dark Tranquility's Avatar
    Join Date
    Sep 2003
    Location
    KSA - UAE
    Posts
    9,458
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    just give a bckground to the page you are putting in the iframe !although it is not advisable to use iframes at all !!

  3. #3
    SitePoint Wizard Wolf_22's Avatar
    Join Date
    Jul 2005
    Posts
    1,700
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well thats basically what I did... I set the src to equal a picture that I uploaded to the server. After that, I set the iframe height to 870, and width to 750. Although the picture I made inside Photoshop CS was set at the same dimensions, it isn't showing up like that inside my webpage after I place it inside the server. Instead, it makes the background of the iframe bigger, and the picture longer from left to right...

  4. #4
    bronze trophy
    Join Date
    Dec 2004
    Location
    Sweden
    Posts
    2,670
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    IFRAME is for HTML documents. For images, use IMG.
    Simon Pieters

  5. #5
    The Mind's I ® silver trophy Dark Tranquility's Avatar
    Join Date
    Sep 2003
    Location
    KSA - UAE
    Posts
    9,458
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    can we know exactly why you need an iframe ?

  6. #6
    SitePoint Wizard Wolf_22's Avatar
    Join Date
    Jul 2005
    Posts
    1,700
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, I like the idea of keeping a focal point directly inline with the initial page layout at the beginning. I like the way iframes give the functionality of a standard frame layout without a frame definition complication... See me?

    Plus, it's just personal preference.


Bookmarks

Posting Permissions

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