<div style="width:400px; margin:0 auto;">This will remain centered</div>
If you want to accommodate IE5+ browsers, you will need to add -
body { text-align:center; }
to your CSS, and then set it back to left align in your page's container -
whatever that is.
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"ian2003" <webforumsuser (AT) macromedia (DOT) com> wrote
Quote:
i wish to center a div tag on a page horizontaly , it remains the same
size box in the centre of the page but remains central no matter how i
expand the browser left and right!
thanks |