Link to home
Start Free TrialLog in
Avatar of jagku
jagkuFlag for United States of America

asked on

how do you place a form on the same line as other text

Hello Experts,

I have the following code:

<html>
<body>
<a>All on one line</a>
<form id="myform">
	<input type="text" name="test" size="20">
	<input type="submit" value="Submit" />
</form>
</body>
</html>

Open in new window


How do I place the form so that it appears on the same line as the 'All on one line' hyperlink?

Please note that I have several forms on the same page - but they should appear as the above (ie without the 'fix').

Many Thanks!
Avatar of Gurvinder Pal Singh
Gurvinder Pal Singh
Flag of India image

what exactly do you mean by <<place a form on the same line as other text>>?
ASKER CERTIFIED SOLUTION
Avatar of Peter Hart
Peter Hart
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Michael Roodt
Michael Roodt

Perhaps you could use  position: absolute; and specify where on the page  you move it to.
Avatar of jagku

ASKER

Hi,
Thanks - rereading my question - I must have been having a bad day! Yes, a table is fine - as well as prepending the text I want to appear to the left of the textbox.

Thanks