Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  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. Similar Questions and Discussions

    1. centering site using CSS
      I'm building a site using CSS and using 'absolute positioning' to align each area (no tables). Now that everything is positioned properly, how do I...
    2. vertical centering problem
      Hello everyone, I can't make one table center vertically inside another even though I have done it many times in the past. The containing table...
    3. Centering Page...Someone PLEASE help me!
      Pages like macromedia.com, yahoo.com, sports.yahoo.com, etc. are automatically centered in a web browser....or pages like MLB.com are fit to take up...
    4. Centering
      In Publisher 2000, centering a title or headline between text that is full justified or left justified results in a bunch of extra space above and...
    5. centering movie
      Hello! ive exported my movie in flash as a swf and a html.... when i view the html its not centred so i added some .css code to it to try and...
  3. #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" <webforumsuser@macromedia.com> wrote in message
    news:dnqdob$g3c$1@forums.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

  4. #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-" <someone@NOSPAM.com> wrote in message
    news:dnqi4q$lij$1@forums.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" <webforumsuser@macromedia.com> wrote in message
    > news:dnqdob$g3c$1@forums.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

  5. #4

    Default Re: Vertical Centering

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

    Colin
    stay_asleep Guest

  6. #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" <webforumsuser@macromedia.com> wrote in message
    news:dnrr2d$gmv$1@forums.macromedia.com...
    > YES!!! Perfect. Thanks to both of you. That's a great link by the way.
    >
    > Colin

    Murray *TMM* Guest

Posting Permissions

  • You may not post new threads
  • You may 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