Hey Kevin,
I tried the align="center" inside the DIV tag and it didn't center the DIV
element (which is what Murray said might happen) although it did cause the
center alignment of the contents of the DIV element.
I tried several different things and here's what finally worked:
<center><div style="position: relative; width: 200px; height: 30px; border:
2px solid #000000; background-color: #CCCCFF">
My text is here.</div></center>
Thanks for the msdn page address, I will be checking it out often.
Have a good one.
--
Don
*********
"Kevin Spencer" wrote:
> Hi Don,
>
> You can do it with an attribute: align="center"
>
> The following link is my "Bible" for DHTML Objects:
>
> http://msdn.microsoft.com/library/de...ce/objects.asp
>
> --
> HTH,
>
> Kevin Spencer
> Microsoft MVP
> ..Net Developer
> Neither a follower nor a lender be.
>
> "Don Dean" <(E-Mail Removed)> wrote in message
> news:ADDBF145-7EAA-4628-A945-(E-Mail Removed)...
> > Hi all,
> > I'm familar with Relative and Absolute positioning of DIV elements.
> >
> > Is there a simple way, maybe with a tag, to center a DIV element in the
> > center (left to right) of a page without using Absolute positioning. I
> > want
> > to position it Relative so it will move in relation to a particular
> > paragraph
> > of text.
> > --
> > Don
> > *********
>
>
>