0

I find that my website get weird when I use Firefox open it, but it display well under IE8, the buttonesubmit is moved to bottomfooter, can anyone help me improve the code below. thank you.

<form action="contact.php" method="post" name="formplace" target="_blank" class="email" id="formplace" onsubmit="MM_validateForm('firstname','','R','lastname','','R','emailaddress','','NisEmail','comments','','R');return document.MM_returnValue">
      <p>pls contact us by following address:<br />
        <br />
    Guangzhou
      <p> You could also fill in below form and send it to us. we will get back to you as soon as possible.<br />
        <br />
        First Name: 
        &nbsp;&nbsp;&nbsp;
        <label for="firstname"></label>
        &nbsp;&nbsp;&nbsp;
        <input type="text" name="firstname" id="firstname" />
        <br />
        <br />
        Lsat Name:
        <label for="lastname"></label>
        &nbsp;&nbsp;&nbsp;
        &nbsp;&nbsp;&nbsp;
        <input type="text" name="lastname" id="lastname" />
        <br />
        <br />
        Email Address:
        &nbsp;&nbsp;
        <label for="emailaddress"></label>
        <input type="text" name="emailaddress" id="emailaddress" />
        <br />
        <br />
        Telephone:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <label for="telephone2"></label>
        <input type="text" name="telephone" id="telephone" />
        <label for="TEL"></label>
        <br />
        <br />
        Country:
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <label for="country"></label>
        <select name="country" id="country">
          <option>Australia</option>

          <option>Turkey</option>
          <option>Japan</option>
          <option>South Korea</option>
          <option>Vietnam</option>
          <option>other</option>
        </select>
        <br />
        <br />
        Business:
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <label for="business"></label>
        <select name="business" id="business">
          <option>wholesale</option>
          <option>retail</option>
          <option>industrial</option>
          <option>services</option>
          <option>distributor</option>
          <option>manufacturer</option>
          <option>importer</option>
          <option>other</option>
        </select>
        <label for="telephone"></label>
        <label for="FAX"></label>
        <br />
        <br />
        Comments:<br />
        <br />
        <label for="comments"></label>
        <textarea name="comments" id="comments" cols="45" rows="5"></textarea>
        <br />
        <br />
        &nbsp;&nbsp;&nbsp;      
        <input name="submit" type="submit" id="submit" onclick="MM_validateForm('firstname','','R','lastname','','R','emailaddress','','RisEmail','telephone','','NisNum','comments','','R');return document.MM_returnValue" value="Submit" />
        <br />
      </p>
      </form>

7add8f45ec82992696b3b7dad1240958

5
Contributors
5
Replies
23
Views
5 Years
Discussion Span
Last Post by TonyG_cyprus
0

I would recommend you to use Style attribute on each field. With this you will have uniform in all browsers

eg:
<input type="text" name="firstname" id="firstname" Style="z-index: 105; left: 200px; position: absolute; top: 200px" />
<input type="text" name="lastname" id="lastname" Style="z-index: 105; left: 200px; position: absolute; top: 230px" />

Thanks
Khalid

Edited by happygeek: fake sig (spam) deleted

0

No.Use must not use inline css.You must prefer separating the two.Create an external css style sheet .
An external style sheet is ideal when the style is applied to many pages.Each page must link to the style sheet using the <link> tag.

You may use internal css when the style is for a particular file.

0

Hello Thank you two, I prefer f2key method, but unfortunately, I don't fully understand the code, I have tried it by inserting it to the form area but the display is not what i expect, only a box displayed and there is no firstname displayed, in addition, when I try to use it for select items, like business, country, all the business items was displayed on the screen, there is no dropdown arrow for selection.

I know that my problem is basic and I only know some Dreamweavr methods, and don't know the code at all. so any one could take time to teach me

  • how to display lastname, firstname etc

  • Item Two: how to keep display text in the same line with box

  • Item Three; I don't know z-index:105 meaning, I delete it, or change it, the display is still same.

thanks if any one tell me detail.

0

From the above article and reply, I understand that it is importent to know the basic code. Any one can help me to understand please.

0

@akhtarswapan,
Google 'basic html tutorial' and 'basic css tutorial' All the info you need to
get stsrted is there. Just don't try to run before you can walk.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.