| | |
html question
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
i didn't see any html forums so I'm posting this here... what should we use in place of the align tag since it has been deprecated?
i know it has been replaced with css, so how would i convert the following two tags?
<p align="center"> </p>
<td align="center"> </td>
i know it has been replaced with css, so how would i convert the following two tags?
<p align="center"> </p>
<td align="center"> </td>
•
•
•
•
Originally Posted by paradox814
i didn't see any html forums so I'm posting this here... what should we use in place of the align tag since it has been deprecated?
i know it has been replaced with css, so how would i convert the following two tags?
<p align="center"> </p>
<td align="center"> </td>
[PHP] <div align="center"></div>[/PHP]
or
[PHP]<table width="50%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
</tr>
</table>[/PHP]
dynastyCODERS#1 when it comes to Programming Tutorials, Database designs and discussions, Operating Systems, you name it, check us out and drop us a line to tell us your opinions on any and everything in mind!;)
Maybe you just need to be alittle more specific. I dunno, its probly just me without coffee today. LOL, let me get some real quick!
dynastyCODERS#1 when it comes to Programming Tutorials, Database designs and discussions, Operating Systems, you name it, check us out and drop us a line to tell us your opinions on any and everything in mind!;)
well sort of, but the align tag has been deprecated... which means your no longer supposed to be usign it
align <-- cancelled, deleted, removed from HTML 4 (granted browsers still maintain backwards compatibility but nonetheless)
I want to know how to replace the align tag with css which is what they tell you to replace it with.
align <-- cancelled, deleted, removed from HTML 4 (granted browsers still maintain backwards compatibility but nonetheless)
I want to know how to replace the align tag with css which is what they tell you to replace it with.
CSS replacement for the depreciated align tag is text-align
text align in CSS image align in CSS table as mikeSQL said: Not sure if there is another way of doing this.
SE (Dave)
text align in CSS
PHP Syntax (Toggle Plain Text)
<div style="text-align: center;"> your text</div>
PHP Syntax (Toggle Plain Text)
<div style="text-align: center;"> <img src="imagename.extention"/></div>
PHP Syntax (Toggle Plain Text)
<table align="center" width="50%" border="0" cellpadding="0" cellspacing="0"> <tr> <td> </td> </tr> </table>
SE (Dave)
insert something here
![]() |
Similar Threads
- Question regarding Title (ColdFusion)
- HTML question about creating a certificate form? (HTML and CSS)
- HTML question (JavaScript / DHTML / AJAX)
- A php question (PHP)
Other Threads in the PHP Forum
- Previous Thread: 301 Redirect
- Next Thread: How do I put a blog RSS feed in PHPBB?
| Thread Tools | Search this Thread |
apache api array beginner beneath binary broadband broken button cakephp checkbox class cms code countingeverycharactersfromastring crack cron curl database date display dynamic echo email error fcc file files folder form forms freelancing function functions google href htaccess html image include incode insert integration ip javascript joomla limit link login mail match menu method mlm mod_rewrite multiple mysql oop pageing pagerank paypal pdf php problem query radio random recursion recursiveloop remote script search server sessions sms smtp soap source space sql strip_tags subversion support! survey syntax system table template tutorial undefined update upload url validator variable video virus web window.onbeforeunload=closeme; youtube





