Solved

How can I keep this form from forcing a line break?

Posted on 2013-12-23
6
201 Views
Last Modified: 2013-12-23
Attached is a screen shot of a problem I'm having in that even when I incorporate "display:inline;" I'm getting a line break and I can't figure out why.

Here's my HTML:

<table class="login" border="1">
		<tr>
		<td valign="top" background="images/spacer.gif" width="160" height="23">
		&nbsp;<input type="text" size="23" class="login" name="email" value="email">
		</td>
		<td style="vertical-align:top;" background="images/spacer.gif" width="160" height="23">
		<input type="password" size="23" class="login" name="password" value="password">
		</td>
		<td style="vertical-align:top;" ><input type="image" src="images/login.png" border="0" name="submit"></form></td>
		<td>
		<IMG SRC="images/spacer.gif" width="325" height="23">
		</td>
		<td background="images/spacer.gif" width="175" height="23" style="vertical-align:top;">
			
		</td>
		</tr>
		</table></form></td>

Open in new window


Any ideas?
Screen-Shot-2013-12-23-at-2.15.3.png
0
Comment
Question by:brucegust
  • 3
  • 3
6 Comments
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
ID: 39736816
You should post a link to your page in order to see what is happening.  The bit of code does not help.  I can guess it is your table width, but it could be something else in your css or inline css?  Please post a link to your sample page.  If you are working locally, then just upload the page and supporting css and javascript/jquery to a public folder.  If you can't do that, then recreate it on jsbin http://jsbin.com/  (if you are using jquery, just click, "add library")
0
 

Author Comment

by:brucegust
ID: 39736929
Here you go, padas!

I appreciate your time!

http://muscularchristianityonline.com/campus/
0
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
ID: 39736956
On this line:

<td valign="top" background="images/spacer.gif" width="160" height="23">
		&nbsp;<input type="text" size="23" class="login" name="email" value="email">
		</td>

Open in new window


Remove the, "&nbsp;"
<td valign="top" background="images/spacer.gif" width="160" height="23">
	<input type="text" size="23" class="login" name="email" value="email">
		</td>

Open in new window

0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:brucegust
ID: 39737012
Did it, but didn't seem to make a difference.

What else could I be missing?
0
 
LVL 52

Accepted Solution

by:
Scott Fell,  EE MVE earned 500 total points
ID: 39737055
Refresh your screen or clear your cache.    In  mac chrome and firefox it works and I tried it on ie 10 without js and it worked as well.
0
 

Author Comment

by:brucegust
ID: 39737087
Scott, I'm going to give you the points just because you've been hanging with me and your suggestions led to something that works (kind of). Take a look at the new question that I've got at http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/CSS/Q_28324843.html

Basically, I put the whole form in a single cell and it's much improved. I don't have the line break anymore, but the submit button is lingering at the top of the cell and I don't know how to get it centered.

I appreciate your input!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
CSS measurement 10 34
Help position a graphic properly via CSS 4 23
Applying an inline style that applies to child elements 2 36
Custom Form Design to Match this example 1 15
Unordered lists (HTML ul tags) are very handy to create menus of all types, shapes and sizes.  All it takes is a little knowledge of CSS and the possibilities are endless. First off, you should know the general format for menus created using the …
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…

911 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now