Quote:
|
In CSS, just set div to float center
|
Umm.. noo.. there is no such thing as 'float: center'.
Using <div align="center"> is the wrong approach, regardless of whether you use XHTML or HTML 4.01 Strict.
The proper method for centering entails 3 things:
1 - give your div to be centered a width
2- In your CSS, set that div to margin: 0 auto;
That will center the div in all browsers except IE 6 and below. For that you must add text-align: center to the <body> or on the container that will hold the div you want centered.
By the way, there is nothing whatsoever wrong with using straight HTML, but do use at least HTML 4.01 Strict. 
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
Please login or register to view this content. Registration is FREE
Please login or register to view this content. Registration is FREE
|