To centre an HTML element you need three things:
1) A complete and valid doctype
2) Left and right margins set to auto
3) A fixed width for the element
An example is at
http://www.rxs-enterprises.org/tests...nter_para.html
Note that if you use Absolute Positioning for a container that contains text, the page WILL break when a user resizes the text.
If you knew all about absolute positioning, you would avoid it.
What do you mean by Text-Box? If this is the text box produced from the Drawing tool bar, then avoid that as well. It uses VML graphics in IE, and a picture of the contents in other browsers.
See
http://wwww.rxs-enterprises.org/fp/a...-graphics.aspx for more details.
--
Ron Symonds
Microsoft MVP (Expression Web)
http://www.rxs-enterprises.org/fp/wf-menu.aspx
Joel submitted this idea :
> is there a way to center a floating text box on
> a page so it stays centered no matter what the
> browser resolution is? Is seems that I can
> only set absolute position and and want the
> text box to be centered on the page no matter
> what resolution or window size.
> tia,
> joel
--
Ron Symonds
Microsoft MVP (Expression Web)
http://www.rxs-enterprises.org/fp/wf-menu.aspx