Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Re: center
August 12, 2006, 1:31 amrate this thread
I've tried: <ol style="text-align:left; margin-left:auto;
margin-right:auto"> no luck!
I want the <ol> to remain left aligned, but the whole block centered on the
<div style="font-family:Arial, Helvetica, sans-serif; text-align:center;
padding:20px; background-color:#FFFF00; color:#990000">
<p style=" padding:3px">
<img src="300.jpg" border="0">
<p style="color:#990000; font-size:120%">xxxxxx</p>
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.
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
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>.