Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
<span style="float:middle;">
#1
<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
Reply
#2
for a block element :
margin-left:auto;
margin-right:auto;

or for text :
text-align:center;
Reply
#3
I just did <center> </center> because I found out that you can't float center. :S
Reply
#4
(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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)