Topic awaiting preservation: Noob question I know: Centering on page (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: Germany |
posted 09-09-2004 20:33
I'd like to center my content (everything, tables, divs, all body childs) in the vertical and horizontal center of the page. How can I do it since BODY doesn't have an align attribute? Can I stretch some DIV or TABLE to the whole page? |
Maniac (V) Inmate From: Den Haag: The Royal Residence |
posted 09-09-2004 20:58
basic 3column design with spans Just used to show the idea. |
Paranoid (IV) Inmate From: USA |
posted 09-09-2004 21:15
If you want EVERYTHING centered... not 3 columns, there is really only one way to do it. (Centering horizontally is easy... vertically, not so much.) code: <style>
|
Bipolar (III) Inmate From: Germany |
posted 09-10-2004 14:41
Ok I won't need a style sheet for this simple page (portal page). Thanks! |
Maniac (V) Inmate From: Den Haag: The Royal Residence |
posted 09-10-2004 22:50
You don't ??? |
Paranoid (IV) Inmate From: USA |
posted 09-11-2004 02:08
It's also wise to separate content/structure and appearance. |
Maniac (V) Mad Scientist From: :morF |
posted 09-11-2004 14:13
of coruse, you could always do that 'half the width and height in the margins' trick with percentages...so say your div is 50% wide, you'd make your left and right margins 25% |
Paranoid (IV) Inmate From: USA |
posted 09-11-2004 15:49
I find that doesn't work so well, since then you have to build a COMPLETELY fluid interface. |
Maniac (V) Mad Scientist From: :morF |
posted 09-11-2004 15:56
When building an interface it can look good, it can scale well and it can work in all browsers perfectly. |
Paranoid (IV) Inmate From: USA |
posted 09-11-2004 16:52
Not everyone is capable of doing such things, however. |
Paranoid (IV) Inmate From: Maryland, USA |
posted 09-12-2004 03:51 |
Paranoid (IV) Inmate From: Greenville, SC, USA |
posted 09-12-2004 04:22
ok here we go. |
Paranoid (IV) Inmate From: 127.0.0.1 |
posted 09-12-2004 23:45
A perfect example of Iron Wallaby's first solution can be seen at my home page. http://www.runningwolf.com/ - I've been using that method for years and it holds up well. |