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

Posted by Shank on 11/18/30 11:55

"David Dorward" <dorward@yahoo.com> wrote in message
news:ebk8dj$7fo$1$8300dec7@news.demon.co.uk...
> 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/>
----------------------------------
I was not aware the <ol> spanned the whole distance. My goof! How do I set
the width of the <div> where it will accommodate changing widths in the
<ol>? I don't want the <ol> to wrap text onto next lines. I guess what I
need is a collapse attribute for the <div>.
thanks

 

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

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