Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How can I get these fields to line up correctly?

Posted on 2013-06-25
2
Medium Priority
?
238 Views
Last Modified: 2013-06-25
Head out to http://countryshowdown.com/. At the very top, you'll see two fields where a user can login. In Safari it looks fine, but in IE, the Password field is a little bit above the username field.

It's a small thing, but it's bugging me and I've tried several things to get them to line up to no avail.

What am I missing? What can I do to get these to line up correctly?

Here's my html:

<table cellspacing="1" cellpadding="1" border="0">
		<tr>
		<td align="left">&nbsp;<form action="contestants_validate.php" method="Post"><input type="text" name="email" class="login_box" value="username"></td>
		<td><input type="password" name="password" class="login_box" value="username"></td><td><input type="image" src="images/new_login_button.jpg" border="0" 
		name="submit"></td>
		</tr></table></form>

Open in new window


...and here's my stylesheet as far as the "login_box:"

input.login_box{
   border:0px;
  width:109px;
  height:21px;
  font-size: 10px;
  color: #cccccc;
  display: inline;
}

Open in new window

0
Comment
Question by:brucegust
2 Comments
 
LVL 58

Accepted Solution

by:
Gary earned 2000 total points
ID: 39276517
Fix your HTML.
You cannot open a form in a td then close it after the table closing tag - move the opening form before the opening table tag.
0
 

Author Comment

by:brucegust
ID: 39276692
That did it, Gary!

Thanks!
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When applying CSS to your HTML, there are many different ways to select which element(s) the CSS applies to.  Some of these selectors are more commonly known and used than others - Here are the more common ones: #X - Matches an ID of X .X - Matche…
CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

877 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question