elksolutions Posted May 26, 2006 Share Posted May 26, 2006 Hi,I'm making a website that sticks to the W3 XHTML Validation. I have a search box which appears in a column row. Because I must end the form (</form>) after the </table> tag so the page will validate, all of the text below is nudged down by a line. Is there any way of stopping this so the page still validates?Thanks very muchSimon Link to comment Share on other sites More sharing options...
aspnetguy Posted May 26, 2006 Share Posted May 26, 2006 you could do this YOUR DOCTYPE<html><head>...</head><body><form ...>....your content</form></body></html> By placing the <form> and </form> after the <body> and before the </body> it ensures nothing will get 'nudged' down. Link to comment Share on other sites More sharing options...
elksolutions Posted May 27, 2006 Author Share Posted May 27, 2006 Unfortunately I can't do that because I have two forms on the page. I have another textbox submit form on the same page.ThanksSimon Link to comment Share on other sites More sharing options...
elksolutions Posted May 27, 2006 Author Share Posted May 27, 2006 Hey, thanks aspnet guy.I managed to work it out in the end...all I had to do was put this in my stylesheet...form {margin: 0px;padding: 0px}Thanks again! Link to comment Share on other sites More sharing options...
justsomeguy Posted May 27, 2006 Share Posted May 27, 2006 That's one way to do it, but just to point it out, you can also do this:form { display: inline;} Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now