Results 1 to 6 of 6

Thread: Centering a table within an I-frame
      
   

  1. #1
    Danny Canada is offline Second Lieutenant
    Join Date
    Apr 2007
    Posts
    121

    Red face Centering a table within an I-frame

    Just a quick question:

    I have insert a table within an I-frame on a template. What is the best way to have the table centered inside the I-frame?

    Thanks!

    Danny

  2. #2
    Join Date
    Feb 2006
    Location
    Earth
    Posts
    8,721

    Default Re: Centering a table within an I-frame

    Hi, I take it the table is on the p[age that the iframe is calling for.? If so,
    ·Click on the iframe on your main page to see what size it is.
    Lest say you made it 500X500
    ·Now go to the page that you are going to use in the iframe. If your table is 400x400, you should place the table in the top left hand corner of the page & drag it down by 50 & across to the right by 50. This should be centre in the iframe.



    Remember to make sure the centre in page box is not ticket in the page properties .



    Good luck.

  3. #3
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default Re: Centering a table within an I-frame

    Quote Originally Posted by Collectors-info
    Hi, I take it the table is on the p[age that the iframe is calling for.? If so,
    ·Click on the iframe on your main page to see what size it is.
    Lest say you made it 500X500
    ·Now go to the page that you are going to use in the iframe. If your table is 400x400, you should place the table in the top left hand corner of the page & drag it down by 50 & across to the right by 50. This should be centre in the iframe.



    Remember to make sure the centre in page box is not ticket in the page properties .



    Good luck.
    Hi Chris,

    i understand manually centering in the vertical dimension. But why not simply "center in Browser" for the horizontal alignment ?
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  4. #4
    Join Date
    Feb 2006
    Location
    Earth
    Posts
    8,721

    Default Re: Centering a table within an I-frame

    Oh alright then! Naval is right. LOL Not sure what made me think of that centring part? (Must be the beer) Little sample just to check this is was what you were after. http://www.collectors-info.com/testing/2if.html

  5. #5
    Danny Canada is offline Second Lieutenant
    Join Date
    Apr 2007
    Posts
    121

    Thumbs up Re: Centering a table within an I-frame

    Thanks guys!

    The two samples in your link look identical

  6. #6
    Join Date
    Feb 2006
    Location
    Earth
    Posts
    8,721

    Default Re: Centering a table within an I-frame

    Quote Originally Posted by Danny Canada
    Thanks guys!

    The two samples in your link look identical


    Don’t worry! It works either way with the centre in page box ticked or not. (I wasn’t thinking when I posted) That was me just testing. LOL

    Good luck.

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