Jump to content

Using forms problem


zeidhaddadin

Recommended Posts

Hi all,I'm using the following table and form with Strict XHTML DTD:

<table cellpadding="0" cellspacing="1" border="0"><tr><td class="td1"><p class="p2"><a href="INDEX.aspx">HOME</a></p></td><td class="td1"><p class="p2"><a href="SERVICES.aspx">SERVICES</a></p></td><td class="td1"><p class="p2">CONTACT US</p></td><td class="td2"> </td></tr></table><form method="post" action="CONTACTPROCESS.aspx"><table cellpadding="0" cellspacing="0" border="0"><tr><td class="td3"><p>E-mail:</p></td></tr><tr><td class="td3"><input type="text" size="25" name="email" /></td></tr><tr><td class="td3"><p>Message:</p></td></tr><tr><td class="td3"><textarea cols="30" rows="5" name="message"></textarea></td></tr><tr><td class="td4"><input type="submit" value="Send Message" /></td></tr></table></form>

When I open the page using INTERNET EXPLORER I see a space between the first table and the second one because of the form tag between them.When I open it with FIREFOX it looks fine ..Can someone please tell me how to fix this problem ...Thanks very much,zeid

Link to comment
Share on other sites

You need to use CSS to set the form's display property. You can do this, but I don't think it's valid in XHTML strict:<form method="post" action="CONTACTPROCESS.aspx" style="display: inline;">So you would probably have to add this to your CSS sheet:

form{  display: inline;}

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...