Reply to Re: css - centering text in a browser window w/ extra wide page

Your name:

Reply:


Posted by David Dorward on 08/26/05 02:59

ppcguy wrote:

> perhaps i need to re-explain.

It would be nice if you could use capital letters in the appropriate places,
they make it much easier to read requests for help.

> i've got a page that's wide...so a horizontal scroll
> bar is there.
>
> i've got a message that i'd like to display centered
> on the browser window.
>
> because if i do <P align=center>msg</P> because
> the page is wide, sometimes the message is not seen.

You haven't provided a URL, so its rather difficult to say what the problem
is. At a guess, I would imagine that you are using tables for layout, and
the table containing the text you wish to centre is very wide (and thus the
problem is the width of the table, not the page).

When I created a test case containing one very wide table, and a centred
paragraph outside it, the paragraph was centred in the window, now in the
width of the document once the table had been accounted for. Don't use
tables for layout.

http://www.allmyfaqs.com/faq.pl?Tableless_layouts


--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is

[Back to original 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

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