forms

chevywes
avatar
rank Regular

Regular


Posts: 32
Joined: 2008-07-17
Location: west coast canada

How do you make a form were the first name, middle initial, last name are all in a row.
I can make them under one another, but I would like them in a row.
I'm trying to make an order form.

Thanks for all your help
chevywes

Hugo
Hugo's picture
rank Moderator

Moderator


Posts: 12583
Joined: 2004-06-06
Location: London

You should know that a

You should know that a question as you have posted it is going to prompt the usual admonishment for lack of code!

Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

chevywes
chevywes's picture
rank Regular

Regular


Posts: 32
Joined: 2008-07-17
Location: west coast canada

forms

Oops! sorry I didn't post the little code I had, here it is.

How do you make a form were the first name, middle initial, last name are all in a row.
I can make them under one another, but I would like them in a row.
Also how do I move the "title" label over to the right to line up with first name.
I'm trying to make an order form.

<form action="" method="post" class="contact">
   <fieldset>
       <legend> Uniquely Yours Pet Attire Order Form </legend>
          <div>
            <p align="center"><strong><em> Get Your UNIQUE Pet Attire Here!       

               </em></strong></p>
          </div>
          <div>
             <label for="title" > Title </label>
             <select name="title" id="title" >
                <option> Mrs. </option>
                <option> Ms. </option>
                <option> Miss </option>
                <option> Mr. </option>
             </select>
          </div>
           <br />
          <div>
            <label for="fname" class="fixedwidth"> First Name </label>
            <input type="text" name="fname" id="fname" />
          </div>
          <div>
            <label for="minitial" > Middle Initial </label>
            <input type="text" name="minitial" id="minitial" />
          </div>
          <div>
            <label for="lname" class="fixedwidth"> Last Nane </label>
            <input type="text" name="lname" id="lname" />
          </div>
   </fieldset>
</form>

here's my css file

form.contact fieldset { border: 2px solid navy;
                        padding: 10px; }

form.contact legend { font-weight: bold;
                      font-size: medium;
                      color: navy;
                      padding: 5px: } 

form. contact { padding: 0;
               margin: 0;
               margin-top: -15px;
               line-height: 150% }

form.contact label.fixedwidth { display: block;
                                 width: 120px;
                                 float: left; }

Thanks for all your help
chevywes

Hugo
Hugo's picture
rank Moderator

Moderator


Posts: 12583
Joined: 2004-06-06
Location: London

Well you could very simply

Well you could very simply remove the divs that are wrapping the label/input pairs

As for the 'title' if you mean the paragraph then just remove the inline/attribute styling?

Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

chevywes
chevywes's picture
rank Regular

Regular


Posts: 32
Joined: 2008-07-17
Location: west coast canada

forms

Sorry I didn't make myself clear. I meant the label title at the begining of the form, where you chose the Mrs.,Ms.,Miss, Mr. stuff

I'll remove the divs and see what happens.

Thanks again
chevywes

chevywes
chevywes's picture
rank Regular

Regular


Posts: 32
Joined: 2008-07-17
Location: west coast canada

forms

The only way I know how to move the label title over to the right is by using &nbsp; to move it over, it works, I know there must be a better way.
Any help is greatly appreciated.

How do I put a ridgeborder around my input boxes

Also how do I make the fields "required".

I'm trying to make a secure order form for a friend, but I have VERY limited knowledge, maybe someone out there might be interested in making one for me at a reasonably price. I'm really getting to that point fast.

Thanks for all your help, sorry to be such a pain (wish I had 1/10 of your knowledge)
chevywes