![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, simpe question: How do I center the page (everything between <body> and /body>)? I tried using margin but it depends on the screen resolution, text-align seems to center everything, including the texts. |
#3
| |||
| |||
|
|
On 2006-09-20, ashkaan57 (AT) hotmail (DOT) com wrote: Hi, simpe question: How do I center the page (everything between <body> and /body>)? I tried using margin but it depends on the screen resolution, text-align seems to center everything, including the texts. body { width: 80%; /* adjust to taste; do not use fixed px width */ margin: auto; } -- Chris F.A. Johnson <http://cfaj.freeshell.org ================================================== ================= Author: Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress) |
![]() |
| Thread Tools | |
| Display Modes | |
| |