You are here: Re: center <ol> in <div> « HTML « IT news, forums, messages
Re: center <ol> in <div>

Posted by David Dorward on 10/04/39 11:55

Shank wrote:

> In the below, how do I get the <ol> block to center in the <div>?
> I've tried: <ol style="text-align:left; margin-left:auto;
> margin-right:auto"> no luck!

That is centered, you just can't see it as it spans the entire width of the
div as you haven't set a width on it.

http://dorward.me.uk/www/centre/

> I want the <ol> to remain left aligned, but the whole block centered on
> the page.

So shouldn't you be centring the div then?


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

 

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

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