Solved

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

Posted on 2013-12-23
6
200 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
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
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…

708 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

19 Experts available now in Live!

Get 1:1 Help Now