You are here: Limiting content width - DIV or BODY? « HTML « IT news, forums, messages
Limiting content width - DIV or BODY?

Posted by Michael Laplante on 04/29/06 03:14

I'm trying to produce a "print friendly" version of a page. I used:

<body style="width: 75%; margin-left: auto; margin-right: auto;">

In Netscape and FF, this produced a page with a margin about it nicely
centered on the page.
However, IE's output is clear across the page with no margins.

Best way to solve this problem?

Use a div instead?
Use a table for a brute force method?
Tweak my <body> tag somehow for IE?

I'm relatively new to CSS.

M

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация