Display a page in IFrame

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Spetsnaz
    Corporal

    • May 2006
    • 10

    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..
  • Girlonthehill
    General

    • Oct 2005
    • 4193

    #2
    Re: Display a page in IFrame

    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
    02036089024 / United Kingdom
    291916438 / Australia

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

    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)


    Comment

    • Spetsnaz
      Corporal

      • May 2006
      • 10

      #3
      Re: Display a page in IFrame

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

      Comment

      • Girlonthehill
        General

        • Oct 2005
        • 4193

        #4
        Re: Display a page in IFrame

        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
        02036089024 / United Kingdom
        291916438 / Australia

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

        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)


        Comment

        • davidundalicia
          General

          • Mar 2006
          • 6294

          #5
          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
          Have fun
          Regards..... David

          Step by Step Visual Tutorials for the complete beginner
          Newbies / Beginners Forum
          FREE Membership Login Scripts: - Meta Tags Analyzer
          My Social Networking Site - Free Contact Forms
          Finished your New website!! Now get it noticed Here:

          Comment

          • Andy128
            Major General

            • Dec 2005
            • 2317

            #6
            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!

            Comment

            Working...
            X