Support Forums

Full Version: <span style="float:middle;">
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
<span style="float:middle;">
Isn't correct, I tried float:middle and float:center, what is left? Or what is the correct way?
Never mind, just found out you can't float center/middle. I just use <center> now xD
for a block element :
margin-left:auto;
margin-right:auto;

or for text :
text-align:center;
I just did <center> </center> because I found out that you can't float center. :S
(11-02-2009, 08:33 PM)macdonjo Wrote: [ -> ]I just did <center> </center> because I found out that you can't float center. :S

You may want to consider the use of center tag since it's deprecated tag, and use the replacement, which as Spl3en said is text-align

You can also use position, top and left CSS attributes to place the DIV/SPAN in the middle.
http://www.codehelp.co.uk/html/deprecated.html