Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

CSS: How to place a form in the center of screen?

Avatar of duta
duta asked on
CSS
13 Comments1 Solution630 ViewsLast Modified:
Dear experts:

I have a simple form.

I would like to learn to use CSS to place the form in the center of the screen.

Thanks a lot!

<body>
<h1>   Registration Form </h1>
 
<form name="demo" onsubmit="return validateFormOnSubmit(this)" ]method = "GET"
action="http://young.scottswebservices.com">
<table summary="Demonstration form">
  <tbody>
  <tr>
    <td><label for="Name"> Name:</label></td>
    <td><input name="name" size="35" maxlength="50" type="text"  id = "name"></td>
  </tr>
  <tr>
    <td><label for="phone"> Phone:</label></td>
    <td><input name="phone" size="35" maxlength="25" type="text"  id = "phone"></td>
  </tr>
 
  <tr>
    <td><label for="email"> Email:</label></td>
    <td><input name="email" size="35" maxlength="30" type="text"  id = "email"></td>
  </tr>
 
  <tr>
    <td><label for="description"> Description </label></td>
    <td><input name="description" size="35" maxlength="25" type="text"  id = "description"></td>
  </tr>
 
 
  <tr>
    <td>
        <label for="subscribe"> Subscribe </label></td>
    <td><input name="subscribe" size="35" maxlength="50" type="checkbox"></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td><input name="Submit" value="Send" type="submit" ></td>
    <td>&nbsp;</td>
  </tr>
  </tbody>
</table>
</form>
 
 
</body>
ASKER CERTIFIED SOLUTION
Avatar of Lotok
LotokFlag of United Kingdom of Great Britain and Northern Ireland image

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Commented:
This problem has been solved!
Unlock 1 Answer and 13 Comments.
See Answers