Results 1 to 6 of 6

Thread: Display a page in IFrame
      
   

  1. #1
    Spetsnaz's Avatar
    Spetsnaz is offline Corporal
    Join Date
    May 2006
    Posts
    10

    Default Display a page in IFrame

    How to display pages in 'center' of an iframe?
    i always get it eighter to the left or to much to the right.. i want the iframe to display pages in center..

  2. #2
    Join Date
    Oct 2005
    Location
    England, UK
    Posts
    4,207

    Default Re: Display a page in IFrame

    Quote Originally Posted by Spetsnaz
    How to display pages in 'center' of an iframe?
    i always get it eighter to the left or to much to the right.. i want the iframe to display pages in center..
    I don't know if there is an easy way but I would try making your i-frame exactly 800px wide then ensuring that your infil page is exactly 800px wide and centred (by checking the box in the page properties). Let us know how you get on as it may help someone else :o)

    VodaHost

    Your Website People!
    1-302-283-3777 North America / International
    07031847328 / United Kingdom

    ------------------------

    Top 3 Best Sellers

    Web Hosting - Unlimited disk space & bandwidth.

    Reseller Hosting - Start your own web hosting business.

    Search Engine & Directory Submission - 300 directories + (Google,Yahoo,Bing)



  3. #3
    Spetsnaz's Avatar
    Spetsnaz is offline Corporal
    Join Date
    May 2006
    Posts
    10

    Default Re: Display a page in IFrame

    i ment it posible to make the iframe display pages is center?

  4. #4
    Join Date
    Oct 2005
    Location
    England, UK
    Posts
    4,207

    Default Re: Display a page in IFrame

    Quote Originally Posted by Spetsnaz
    i ment it posible to make the iframe display pages is center?
    I have just created a test page with an i-frame. The infil page was just a photograph. I made sure that the photo was jammed hard against the top left hand corner of the page it was on. I then altered the page width, in page properties, to exactly match the width of the image and checked the centre in browser box, in page properties. When I published and viewed the page - the image was exactly centred in the i-frame.

    Okay?

    VodaHost

    Your Website People!
    1-302-283-3777 North America / International
    07031847328 / United Kingdom

    ------------------------

    Top 3 Best Sellers

    Web Hosting - Unlimited disk space & bandwidth.

    Reseller Hosting - Start your own web hosting business.

    Search Engine & Directory Submission - 300 directories + (Google,Yahoo,Bing)



  5. #5
    Join Date
    Mar 2006
    Location
    Mallorca, Spain
    Posts
    6,313

    Default Re: Display a page in IFrame

    Small point, jammed up to top left is perfect but do not then ruin it by centering the page with the iframe

  6. #6
    Andy128's Avatar
    Andy128 is offline Major General
    Join Date
    Dec 2005
    Location
    Michigan
    Posts
    2,322

    Default Re: Display a page in IFrame

    I recently re-did the computer help portion of my website as described by Navaldesign and found that the page that is to be contained in the I-frame should be about 775pix then stretch the I-frame to be at 800 or slightly under that. Then all pages will display centered. If the I-frame extends even a little beyond the 800pix it will cause a shift in the displayed page.

    Hope that helps-

    Andy
    **PS- if anyone is interested, I just finished a tutorial on Navaldesigns Menu in I-Frame. It can be found at the link in my signature.
    PHP- is a blast!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49