Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 7 of 7
  1. #1
    Junior Member
    Join Date
    Jul 2005
    Location
    Missouri
    Posts
    3
    Member #
    10790
    So I want to change my site so that it can be interpreted correctly, and make it XHTML compliant. I am using resources from www.w3schools.com to get there, and I get stuck with <td> and other table problems which my pages are filled with. Take a look yourself http://www.shawnstrickland.net/index.htm and let me know what I might be able to do to correct this while sticking with the same look.

  2.  

  3. #2
    Senior Member Fallout's Avatar
    Join Date
    Aug 2003
    Location
    Richmond, Virginia
    Posts
    543
    Member #
    2748
    I assume you have already gone through the validator and corrected everything it said?

    For example:

    Line 45, column 15: there is no attribute "valian"

    <td valian="top" td width="189" class="bgTop"><a href="/index.htm" target="_
    Spell 'valign' right and take out the extra 'td' in the middle... boom, 2 errors down. For the rest, use CSS for height/width and make sure to end your tags in the correct order.

    Code:
    Wrong:  <div><strong>My data!</div></strong>
    Right:  <div><strong>My data!</strong</div>
    
    Always close the most recently opened tag first.

  4. #3
    Junior Member
    Join Date
    Jul 2005
    Location
    Missouri
    Posts
    3
    Member #
    10790
    Quote Originally Posted by Fallout
    ... For the rest, use CSS for height/width and make sure to end your tags in the correct order.
    How do I use CSS for height/width (code). And my code has multiple tr tags that when I edit them out, often change the entire layout... any hints?

  5. #4
    Senior Member
    Join Date
    May 2005
    Location
    Essex, United Kingdom
    Posts
    200
    Member #
    10131
    Add this to the td tag:
    Code:
    style="width:20px;height:20px;"
    Why are you removing the tr tags?

  6. #5
    Senior Member Fallout's Avatar
    Join Date
    Aug 2003
    Location
    Richmond, Virginia
    Posts
    543
    Member #
    2748
    I didn't mean taking them all out, I just said that you should remove the ones that are in the middle of other elements. For example:

    Code:
    <b style='color: #0000ff' b id='something'>
    Will not work because you have an extra bold tag in the middle of your first. See my earlier post for the exact code from your page where this happens.

  7. #6
    Junior Member
    Join Date
    Jul 2005
    Location
    Missouri
    Posts
    3
    Member #
    10790
    Quote Originally Posted by dchesterton
    Add this to the td tag:
    Code:
    style="width:20px;height:20px;"
    Why are you removing the tr tags?
    Because the validator doesn't like them for some reason.

  8. #7
    Senior Member
    Join Date
    May 2005
    Location
    Essex, United Kingdom
    Posts
    200
    Member #
    10131
    If they are properly nested e.g.
    Code:
    <table><tr><td></td></tr></table>
    then there shouldn't be a problem.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 02:42 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com