Close

Results 1 to 4 of 4
  1. #1
    DF VIP Member whatnow's Avatar
    Join Date
    Jan 2004
    Location
    London
    Posts
    8,215
    Thanks
    6
    Thanked:        0
    Karma Level
    783

    Default centering a HTML frames page in another

    I know this problem is a simple on but it always gives me grief when I try to do it. I've got a HTML page that I want to load directly in the center (vertically and ohrizonatally) of another page which will act as a boarder.

    Am I best off using frames, tables or CSS?

    sorry for such a easy question too, I just get really crap when it comes to not knowing which is the best method for doing some things and also trying to work out percentages for frame widths, they always look bad!

    also I really need to conform to WC3 html standards, so to my knowledge I cant use percentages anyway as from my memory they are unsupported...but I'd love to be wrong on that.

  2. #2
    DF VIP Member ShadowMoses's Avatar
    Join Date
    Oct 2003
    Location
    Wales, UK
    Posts
    1,168
    Thanks
    0
    Thanked:        0
    Karma Level
    309

    Default Re: centering a HTML frames page in another

    tables are best mate, if you want a frame in it use an iframe inside the <td> tag

    believe it goes somet like this

    <td><iframe name="mainpage"></td>

    not too sure, a google search on iframes will find it lol.

    i personally dont use frames, php and includes is better, but when not in php i just use tables!

    Moses

  3. #3
    DF VIP Member whatnow's Avatar
    Join Date
    Jan 2004
    Location
    London
    Posts
    8,215
    Thanks
    6
    Thanked:        0
    Karma Level
    783

    Default Re: centering a HTML frames page in another

    thanks for the help (again) moses,

    I will look into iframes, thanks.

    I can't use anything like PHP, it's for a NHS website and they can't have anything that requires any new technology, not even flash...old buggers.

    I also was wondering, the page i'm making has a grid of images that center around a scrolling text box. Simply put what would be the best way to do this, or can someone show me a site that does use it but doesn't have any server language or flash etc...

    really appreciate help, it's lovely.

    edit: iframes seem to be the winner here, but if anyone has a good suggestion I'd like to hear it.

  4. #4
    DF VIP Member graham.edmon's Avatar
    Join Date
    May 2001
    Location
    Edinburgh
    Posts
    263
    Thanks
    0
    Thanked:        0
    Karma Level
    290

    Default Re: centering a HTML frames page in another

    I have to point out here that....

    1. Frames are bad! search engine spiders have major problems with them, indexes don't like them, can lead to a confusing interface.. etc etc etc...
    2. iFrames are bad! lack of support.. newer browsers do support them.. although support is inconsitent.


    for all of what you are doing the most backward compatible way of doing it is through tables... you could use a version of CSS to do much of it, but that creates its own problems in its self..
    Languages: DotNet, C/C++, VB, PHP, Perl, COBOL (ewww), Pascal, ......
    Databases: SQLServer, Oracle, Ingres, Access, .......
    General geek....

Similar Threads

  1. dead white page
    By wildboy in forum PC Software
    Replies: 1
    Last Post: 11th December 2002, 12:07 AM
  2. Palm os + html editor
    By digidump in forum PC Software
    Replies: 0
    Last Post: 20th November 2002, 02:15 PM
  3. Need A Good Covers Page With Kelly Slaters Pro Surfer DVD
    By squiz in forum Microsoft Consoles
    Replies: 5
    Last Post: 17th October 2002, 11:25 AM
  4. main forum page i confused
    By keith in forum Forum Suggestions & Feedback
    Replies: 2
    Last Post: 6th October 2002, 02:10 AM
  5. Xodus Home Page has been updated
    By pogi in forum Microsoft Consoles
    Replies: 22
    Last Post: 25th September 2002, 10:01 AM

Social Networking 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
  •