Professional Web Applications Themes

Vertical Centering - Macromedia Dynamic HTML

I feel I am quite at home with tables now, just one, hopefully final, problem. Vertical centering of a page. I'm sure every beginner is puzzled by this, but even after the last four hours+ trying to find the answer, and apparently finding it, I don't know why it won't work on the page linked below [url]http://www.unxposed.net/network.htm[/url] I can do it on a simple notepad html page, the table is fixed 800x400 and I put a single cell table around it 100%x100% and have the <tr align="center" valign="middle">. This I'm sure should be identicle on the page, but it is ...

  1. #1

    Default Vertical Centering

    I feel I am quite at home with tables now, just one, hopefully final, problem.
    Vertical centering of a page. I'm sure every beginner is puzzled by this, but
    even after the last four hours+ trying to find the answer, and apparently
    finding it, I don't know why it won't work on the page linked below
    [url]http://www.unxposed.net/network.htm[/url] I can do it on a simple notepad html page,
    the table is fixed 800x400 and I put a single cell table around it 100%x100%
    and have the <tr align="center" valign="middle">. This I'm sure should be
    identicle on the page, but it is fixed to the top of the screen instead. Is
    there something stopping this vertical centering (an example can be found here
    [url]http://www.machinedm.com/[/url] ).

    Thanks once again.

    Colin

    stay_asleep Guest

  2. #2

    Default Re: Vertical Centering

    Here is one method I use to vertically center a table.

    <style type="text/css">
    body {margin: 0px; marginheight: 0px; marginwidth: 0px; scroll: no;
    text-align: center;height: 100%;}
    table {width: 100%; height: 100%;}
    </style>
    </head>
    <body>
    <table border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td>
    Whatever content you want goes in here.
    </td>
    </tr>
    </table>
    </body>


    Hope this helps.
    Regards,
    -D-

    "stay_asleep" <webforumsusermacromedia.com> wrote in message
    news:dnqdob$g3c$1forums.macromedia.com...
    > I feel I am quite at home with tables now, just one, hopefully final,
    problem.
    > Vertical centering of a page. I'm sure every beginner is puzzled by this,
    but
    > even after the last four hours+ trying to find the answer, and apparently
    > finding it, I don't know why it won't work on the page linked below
    > [url]http://www.unxposed.net/network.htm[/url] I can do it on a simple notepad html
    page,
    > the table is fixed 800x400 and I put a single cell table around it
    100%x100%
    > and have the <tr align="center" valign="middle">. This I'm sure should be
    > identicle on the page, but it is fixed to the top of the screen instead.
    Is
    > there something stopping this vertical centering (an example can be found
    here
    > [url]http://www.machinedm.com/[/url] ).
    >
    > Thanks once again.
    >
    > Colin
    >


    -D- Guest

  3. #3

    Default Re: Vertical Centering

    Read this -

    [url]http://www.apptools.com/examples/tableheight.php[/url]

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================


    "-D-" <someoneNOSPAM.com> wrote in message
    news:dnqi4q$lij$1forums.macromedia.com...
    > Here is one method I use to vertically center a table.
    >
    > <style type="text/css">
    > body {margin: 0px; marginheight: 0px; marginwidth: 0px; scroll: no;
    > text-align: center;height: 100%;}
    > table {width: 100%; height: 100%;}
    > </style>
    > </head>
    > <body>
    > <table border="0" cellpadding="0" cellspacing="0">
    > <tr>
    > <td>
    > Whatever content you want goes in here.
    > </td>
    > </tr>
    > </table>
    > </body>
    >
    >
    > Hope this helps.
    > Regards,
    > -D-
    >
    > "stay_asleep" <webforumsusermacromedia.com> wrote in message
    > news:dnqdob$g3c$1forums.macromedia.com...
    >> I feel I am quite at home with tables now, just one, hopefully final,
    > problem.
    >> Vertical centering of a page. I'm sure every beginner is puzzled by this,
    > but
    >> even after the last four hours+ trying to find the answer, and apparently
    >> finding it, I don't know why it won't work on the page linked below
    >> [url]http://www.unxposed.net/network.htm[/url] I can do it on a simple notepad html
    > page,
    >> the table is fixed 800x400 and I put a single cell table around it
    > 100%x100%
    >> and have the <tr align="center" valign="middle">. This I'm sure should be
    >> identicle on the page, but it is fixed to the top of the screen instead.
    > Is
    >> there something stopping this vertical centering (an example can be found
    > here
    >> [url]http://www.machinedm.com/[/url] ).
    >>
    >> Thanks once again.
    >>
    >> Colin
    >>
    >
    >
    >

    Murray *TMM* Guest

  4. #4

    Default Re: Vertical Centering

    YES!!! Perfect. Thanks to both of you. That's a great link by the way.

    Colin
    stay_asleep Guest

  5. #5

    Default Re: Vertical Centering

    Yep - Gary knows his stuff.

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================


    "stay_asleep" <webforumsusermacromedia.com> wrote in message
    news:dnrr2d$gmv$1forums.macromedia.com...
    > YES!!! Perfect. Thanks to both of you. That's a great link by the way.
    >
    > Colin

    Murray *TMM* Guest

Similar Threads

  1. vertical centering problem
    By ooo11 in forum Macromedia Dynamic HTML
    Replies: 3
    Last Post: October 31st, 04:07 PM
  2. Help!! Centering Problem!
    By CommV in forum Macromedia Dynamic HTML
    Replies: 1
    Last Post: August 9th, 04:19 PM
  3. Need Help Centering a SWF on page
    By LeifKolt in forum Macromedia Dynamic HTML
    Replies: 3
    Last Post: August 4th, 08:49 PM
  4. Centering
    By analog@logwell.com in forum Web Design
    Replies: 4
    Last Post: June 26th, 03:12 AM
  5. Centering no, but bigger yes
    By Don Schmidt in forum Web Design
    Replies: 5
    Last Post: April 5th, 04:49 PM

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
  •  

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 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139