Solved

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

Posted on 2013-12-23
6
204 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
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 

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

Gigs: Get Your Project Delivered by an Expert

Select from 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

Suggested Solutions

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…
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 style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

776 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