html question

Reply

Join Date: Oct 2004
Posts: 348
Reputation: paradox814 is an unknown quantity at this point 
Solved Threads: 4
paradox814's Avatar
paradox814 paradox814 is offline Offline
Posting Whiz

html question

 
0
  #1
Feb 1st, 2005
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>
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 196
Reputation: mikeSQL is an unknown quantity at this point 
Solved Threads: 3
mikeSQL's Avatar
mikeSQL mikeSQL is offline Offline
Junior Poster

Re: html question

 
0
  #2
Feb 1st, 2005
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>
You mean like this example?
[PHP] <div align="center"></div>[/PHP]

or

[PHP]<table width="50%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>&nbsp;</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!;)
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 196
Reputation: mikeSQL is an unknown quantity at this point 
Solved Threads: 3
mikeSQL's Avatar
mikeSQL mikeSQL is offline Offline
Junior Poster

Re: html question

 
0
  #3
Feb 1st, 2005
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!;)
Reply With Quote Quick reply to this message  
Join Date: Oct 2004
Posts: 348
Reputation: paradox814 is an unknown quantity at this point 
Solved Threads: 4
paradox814's Avatar
paradox814 paradox814 is offline Offline
Posting Whiz

Re: html question

 
0
  #4
Feb 1st, 2005
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.
Reply With Quote Quick reply to this message  
Join Date: Jan 2005
Posts: 147
Reputation: steveneven is an unknown quantity at this point 
Solved Threads: 8
steveneven's Avatar
steveneven steveneven is offline Offline
Junior Poster

Re: html question

 
0
  #5
Feb 2nd, 2005
CSS replacement for the depreciated align tag is text-align

text align in CSS
  1. <div style="text-align: center;"> your text</div>
image align in CSS
  1. <div style="text-align: center;"> <img src="imagename.extention"/></div>
table as mikeSQL said:
  1. <table align="center" width="50%" border="0" cellpadding="0" cellspacing="0">
  2. <tr>
  3. <td>&nbsp;</td>
  4. </tr>
  5. </table>
Not sure if there is another way of doing this.

SE (Dave)
insert something here
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC