Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Eliminating the line break in the <FORM> tag

Status
Not open for further replies.

bignerd

Programmer
Jun 23, 2003
1
US
When I declare the <form> tag in my HTML document, the browser automatically breaks to a newline. I have tried to declare the <form> tag within a column <td> of table <table> to prevent the trailing text from starting on a newline, but this method does not work. I am hope someone knows how to prevent this problem.

Visual Example

(without <form> tag)
----------------- ( <- <hr> tag )
my text ( <- following text)


(with <form> tag)
----------------- ( <- <hr> tag )
( <- <form> tag & unwanted line break )
my text ( <- following text)
 
Do you really need the <hr> tag? It seems that the tag affected the line break. But not sure. If only you put your codes here..

regards,
mansii
 
Hi,

This is what you want to do to get rid of that break:

TABLE CELL CONTENT</TD></FORM>
</TR>
</TABLE>

Put the closing form tag between the last </TD> & </TR>

It's not valid HTML but it is the workaround for that.

Hope this helps!

Nate

mainframe.gif

 
Here's an easy way to get rid of the break, and this one IS valid HTML:
[tt]
<form style=&quot;margin:0&quot;>
[/tt]

-- Chris Hunt
Extra Connections Ltd

The real world's OK for a visit, but you wouldn't want to LIVE there!
 
You could also say:
<form style=&quot;border:1px solid black;border-width:1px 0px;padding.5em 0em;margin:.5em 0em;&quot;>
This gives you:
Code:
----------------- ( <- form border )
   my form text   ( <- form text )
----------------- ( <- form border )
Then you don't need <hr> tags.

News and views of some obscure guy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top