Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XHTML Validation Question 1

Status
Not open for further replies.

coldfused

Technical User
Jan 27, 2001
2,442
US
This validates:

Code:
<form action="page.cfm" method="post">
<table width="775" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
    <tr>
      <td>
     </td>
    </tr>
</table>  
</form>

This does not:

Code:
<table width="775" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
<form action="page.cfm" method="post">
    <tr>
      <td>
     </td>
    </tr>
</form>
</table>

Notice the "form" tag is nested in one example and not in the other.

Well that sucks....

Of course to get it to validate I have to remove the nested form tag and take it out side the table tag, only problem is the 8 pixel or so space that IE, Netscape, Firefox, etc adds inbetween the table with the form and the next element on the page.

Any ideas, is there a work around? That table is a <cfinclude> that I really dont want to have to go back and bring the form tag into the page the include is being pulled into just to get the page to validate.

If it was just a contact us page I wouldnt bother having one page that didnt validate, but this login form is in the header of every single page.

----------------------------------------
Florida Web Design
Orlando Web Hosting
Florida Coldfusion Hosting
 

Use this CSS in your style section:

Code:
form {
   padding: 0px;
   margin: 0px;
}

Hope this helps,
Dan



The answers you get are only as good as the information you give!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top