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]
|