I have a forum SMF and i've put my add there and its dont look good. I need my add to show in center no in the left side.. No like this Like this
<center>Ad code goes here</center> Code (markup): or <p align="center">Ad code goes here</p> Code (markup): or <table align="center"><tr><td>Ad code goes here</td></tr></table> Code (markup):
All three of those methods are bad. You shouldn't be using the "align" attribute - it's depreciated. What you should be doing is: <div style="margin:0 auto; text-align:center;"> ... </div> HTML: Cheers Marc
right...a ton more work for the same thing..ok. How is that depreciated when you are using the text-align attribute?
Because that isnt the "align" attribute. As you can see the "text-align" is used within the "style" attribute of that div, which makes it CSS code. Whereas the "align" attribute is used directly in a div like: "align="center"".... Do you get me? (basically text-align is CSS, not HTML)
The center tag in HTML is depreciated as well. While it might be more work to do it inline. If you assign it to a class and call it over and over again, it will reduce the amount of 'work'.