alignment

liunx

Guest
Is there any specific advantage to using <div align="center"> instead of <center>? Or is it just two different ways to do the same thing.<!--content-->I do use center from time to time. I rarely use div or span at all. I consider the latter to be code bloat much of the time. They are pretty much the same thing.<br />
<br />
Somone might think of an example where it has to be done one way or the other, but I can't think of any place where they aren't the same, at the moment.<!--content-->The only advantage I can think of atm is that if you give that dive an ID, you can easily change the style of it "on the fly" so to speak (make it left, right, center, whatever).<!--content-->actually both ways are deprecated and shouldn't be used.<br />
<br />
you are suppose to be using css to align everything.<!--content-->
 
Back
Top