PDA

View Full Version : trouble centering <div>


tommy
07-11-2003, 11:39 AM
I am developing a new website and have decided to have a go at using <div> instead of tables.

But i am having trouble centering the <div> in the external css i have tried lots of different methods but it just doesnt work. i know that the external css is working because i have of attributes in there working.

Any ideas of why this is not working.

animgirl
07-11-2003, 12:58 PM
Could you post the code you are having problems with?

animgirl

HZR
07-27-2003, 06:07 AM
Use margin: auto; for horizontal centering.