![]() Topic awaiting preservation: Noob question I know: Centering on page (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: Germany |
![]() 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 |
![]() basic 3column design with spans Just used to show the idea. |
Paranoid (IV) Inmate From: USA |
![]() 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 |
![]() Ok I won't need a style sheet for this simple page (portal page). Thanks! |
Maniac (V) Inmate From: Den Haag: The Royal Residence |
![]() You don't ??? |
Paranoid (IV) Inmate From: USA |
![]() It's also wise to separate content/structure and appearance. |
Maniac (V) Mad Scientist From: :morF |
![]() 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 |
![]() I find that doesn't work so well, since then you have to build a COMPLETELY fluid interface. |
Maniac (V) Mad Scientist From: :morF |
![]() 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 |
![]() Not everyone is capable of doing such things, however. |
Paranoid (IV) Inmate From: Maryland, USA |
![]() |
Paranoid (IV) Inmate From: Greenville, SC, USA |
![]() ok here we go. |
Paranoid (IV) Inmate From: 127.0.0.1 |
![]() 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. |