as*******@hotmail.com wrote:
Hi, simpe question: How do I center the page (everything between
<bodyand </body>)?
body { margin: 0 auto; width: 80%;}
If you meant "centered text", like this:
Volutpat duis minim tation eum molestie dolor ea ut. Te
dolor wisi. Accumsan eum et consectetuer illum eu
exerci nisl in euismod vulputate. Nulla duis, in vulputate,
minim odio ad, qui diam nulla at qui. Esse quis laoreet
sed, ut feugait molestie consequat iusto, in nostrud zzril
tincidunt consequat et zzril feugait ullamcorper
erat euismod.
...well, don't do that. It's extremely hard to read because the eye must
hunt for the beginning of the new line.
I tried using margin but it depends on the screen resolution,
text-align seems to center everything, including the texts.
Nothing on web pages depends on screen resolution, everything depends on
browser window width. Not everyone has a maximized browser.
--
-bts
-Motorcycles defy gravity; cars just suck.