![]() | ![]() | ![]() |
| |||||||
| Forums | Register | Groups | Awards | Arcade | Pets | T-Bucks / T-Store | Invite Your Friends | Blogs | Mark Forums Read |
| Web Design Forums and discussions on webdesign |
Web Design | |||||||||
|
|
|
|
| |||||
![]() |
| | LinkBack | Thread Tools |
| | #2 (permalink) |
| Civilians | Viper wrote: > I figured I would take a shot at validating my other sites. But I give up. > W3C says you cant have CENTER or P tags in tables. Then how do you center > text when you dont wish to learn/use CSS? You pay someone else to do it for you :-) -- Els http://locusmeus.com/ Sonhos vem. Sonhos vão. O resto é imperfeito. - Renato Russo - Now playing: Phyllis Nelson - Move Closer |
|
| | #3 (permalink) |
| Civilians | Viper wrote: > I figured I would take a shot at validating my other sites. But I give > up. W3C says you cant have CENTER or P tags in tables. Then how do you > center text when you dont wish to learn/use CSS? You should be able to have them in tables, but make sure they're inside the cells eg <td><center>centered</center></td> Although why don't you just do this: <td align="center">centered</td> -- Chris Hope | www.electrictoolbox.com | www.linuxcdmall.com |
|
| | #4 (permalink) |
| Civilians | Previously in alt.www.webmaster, Viper <venomx@gmail.com> said: > I figured I would take a shot at validating my other sites. But I give up. Come on, don't be a quitter. > W3C says you cant have CENTER or P tags in tables. That's what the specs say. > Then how do you center text when you dont wish to learn/use CSS? Why on earth wouldn't you want to use CSS? (Hint: what about the align="" attribute?) -- Mark Parnell http://www.clarkecomputers.com.au |
|
| | #5 (permalink) |
| Civilians | Mark Parnell wrote: > Previously in alt.www.webmaster, Viper <venomx@gmail.com> said: > >> I figured I would take a shot at validating my other sites. But I >> give up. > > Come on, don't be a quitter. > >> W3C says you cant have CENTER or P tags in tables. > > That's what the specs say. > >> Then how do you center text when you dont wish to learn/use CSS? > > Why on earth wouldn't you want to use CSS? Because I make simple pages. Yes its my choice because I hate sites full of images, flash, and other clutter. I could never see the need to put all code in another file or at the top of each file when it will work in the code itself. > (Hint: what about the align="" attribute?) Where? I try <p align="center"> says its invalid... |
|
| | #6 (permalink) |
| Civilians | Mark Parnell wrote: > Previously in alt.www.webmaster, Viper <venomx@gmail.com> said: > >> As a example I have... > <snip> > > Are you trying to use Transitional or Strict? You'll have to use > Transitional if you don't want to use CSS. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
|
| | #7 (permalink) |
| Civilians | Viper wrote: > Chris Hope wrote: >> Viper wrote: >> >>> Chris Hope wrote: >>>> Viper wrote: >>>> >>>>> I figured I would take a shot at validating my other sites. But I >>>>> give up. W3C says you cant have CENTER or P tags in tables. Then >>>>> how do you center text when you dont wish to learn/use CSS? >>>> >>>> You should be able to have them in tables, but make sure they're >>>> inside the cells eg <td><center>centered</center></td> >>>> >>>> Although why don't you just do this: >>>> >>>> <td align="center">centered</td> >>> >>> As a example I have... >>> >>> <table> >>> <tr> >>> <td> >>> <center>BAH BAH BAH</center> >>> <br /> >>> <p>lots of text here >>> here >>> here >>> here >>> here</p> >>> </td> >>> </tr> >>> </table> >>> The center and P tags are invalid. >> >> Well I just uploaded this to the w3c validation service and it >> validated: >> >> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> >> <html> >> <head> >> <title>test</title> >> </head> >> <body> >> <table> >> <tr><td><center>centered</center></td></tr> >> </table> >> </body> >> </html> > > So why wont > http://validator.w3.org/check?uri=ht...king.zurax.com From a very brief look you have your <center> tag inside a <font> tag which I would imagine is what is causing the problem, not that it's in a <td>. Also the font tag is never closed with a </font> I just tried removing your font tag on line 33 and it fixed that particular error, leaving just 4 errors. -- Chris Hope | www.electrictoolbox.com | www.linuxcdmall.com |
|
![]() |
| Bookmarks |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [News Feed] Search Sites Try to Give Instant Answers | Forum Mouse | News Articles | 0 | 10-04-2005 08:00 |
| Validating Cells | Discovery | Microsoft Applications | 2 | 08-19-2005 16:00 |
| Validating data in a User Form | Jack Gillis | Microsoft Applications | 1 | 06-19-2005 20:00 |
| Ok need a little help (no not with validating or programming!) | Viper | Web Design | 3 | 05-07-2005 12:00 |
| W3C Sites | Dan Ruscoe | Web Design | 16 | 12-19-2004 16:00 |
![]() | ![]() | ![]() |