On Jun 5, 1:24*pm, richard <mem...@newsguy.com> wrote:
> On Thu, 5 Jun 2008 03:07:11 +0000 (UTC), Neredbojias
> <me@http://www.neredbojias.net/_eml/fliam.php> wrote:
> >On 04 Jun 2008, richard <mem...@newsguy.com> wrote:
>
> >> On Wed, 4 Jun 2008 11:45:16 -0700 (PDT), Hugo
> >> <hugodenbree...@gmail.com> wrote:
> >>><div align="center">
>
> >> This tells the content of the division to be centered.
> >> It should read <div style="align:center;">
>
> >I think you meant <div style="text-align:center;">
>
> I was showing that his coding was in error and how to correct it.
But your correction was a bigger error than his original. At least his
was valid HTML, your's was just made up rubbish.
> Align and text-align are two different things.
There are indeed. One of them is an HTML attribiute and one of them is
a CSS property.
There is no align property in CSS (see
http://www.w3.org/TR/CSS21/propidx.html)
so style="align: center" is nonsense.
To align the text contents of a block use text-align: center; To align
the block itself use margin-left: auto; margin-right: auto;
The HTML align="center" does both and a bit more (it also aligns any
child blocks) and has no single equivalent in CSS.
Steve