Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

scem0

macrumors 604
Original poster
Jul 16, 2002
7,028
1
back in NYC!
I know you can
center text horizontally
but is there a way to center text (or more specifically a table) vertically without using carriage returns?​

Because people with larger monitors won't have the table centered on their monitors (only horizontally).

I want something to look like this:
Code:
+-----------------------------------------+
|                     /|\                 |
|                      |                  |
|                      |                  |
|             +------------+equal distance|
|             |   The      |  as left side|
|<----------->|   table    |<------------>|
|             |            |              |
|             +------------+              |
|                     |                   |
|                     |  equal distance   |
|                    \|/      as top      |
|-----------------------------------------+

I hope that helps :cool: ;) :eek:.

scem0
 
As long as you like Tables..

You can make one big table with one big cell that takes up the whole screen and set horizontal align and vertical align of that cell to center.. the only problem with that method is not all browsers like to make tables 100% high.
 
The frame method works very well, thanks :).

You can play around with it at emo.20fr.com, which is where my site will be located.

scem0
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.