Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Creating two forms side by side
Old 03-22-2005, 10:45 PM Creating two forms side by side
Experienced Talker

Posts: 36
Trades: 0
Hi:

I have been trying to create two small forms side by side, but try as I may, I always seem to get it wrong. Also, how do you create rounded corners in a form?

Thanks.
common_sense is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-23-2005, 12:46 AM
drewrockshard's Avatar
Super Talker

Posts: 100
Name: Drew
Location: Garland (Dallas), Texas
Trades: 0
this could be a cool lil project for me (no charge or course)...if you want me to. just PM me or contact me on aim or msn (links are in my profile)
__________________
Best Regards,
Drew Decker

Please login or register to view this content. Registration is FREE
drewrockshard is offline
Reply With Quote
View Public Profile
 
Old 03-23-2005, 09:20 AM
Rufo's Avatar
Extreme Talker

Posts: 173
Trades: 0
To get them side by side, you could use either CSS or tables.
Form elements are invisible - they do not have any corners to round.
__________________

Please login or register to view this content. Registration is FREE
Rufo is offline
Reply With Quote
View Public Profile Visit Rufo's homepage!
 
Old 03-25-2005, 09:48 AM
drewrockshard's Avatar
Super Talker

Posts: 100
Name: Drew
Location: Garland (Dallas), Texas
Trades: 0
yes you can create rounded corners for a for. you can use div tags and a little work of the DOM and you willl be set. and of course, using CSS was very obvious. I personally dont use tables except for tabular data, but whatever is easier for you.
__________________
Best Regards,
Drew Decker

Please login or register to view this content. Registration is FREE
drewrockshard is offline
Reply With Quote
View Public Profile
 
Old 03-26-2005, 10:01 PM
Experienced Talker

Posts: 36
Trades: 0
Thanks guys for the help.
common_sense is offline
Reply With Quote
View Public Profile
 
Old 03-29-2005, 06:03 AM
Average Talker

Posts: 29
Trades: 0
hello,
You can use two form side by side by using html table.

regards,
rakesh.
http://www.logixsoln.com
chetanrakesh is offline
Reply With Quote
View Public Profile Visit chetanrakesh's homepage!
 
Old 03-29-2005, 02:52 PM
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Trades: 0
Instead of making a container DIV to make it visible, use CSS:

Code:
form {
	border: 1px dashed red;
}
And yes, it validates.
(Tested it in IE6 and Firefox 1.0.2)
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Last edited by Minaki; 03-29-2005 at 02:55 PM..
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Old 03-30-2005, 11:14 AM
simptech's Avatar
Skilled Talker

Posts: 81
Location: Cape Coral, Florida, United States
Trades: 0
Have not tested <form> tags with the CSS float property so this may be incorrect. Pretty sure it would work though

Code:
<style type="text/css">
<!--
form {
	border: 1px dotted red;
}
 
form#f1 {
	float: left;
}
 
form#f2 {
	float: right;
}
-->
</style>
 
<form id="f1">
	... your form elements ...
</form>
 
<form id="f2">
	... your form elements ...
</form>
__________________

Please login or register to view this content. Registration is FREE

FREE PHP scripts for your website!
simptech is offline
Reply With Quote
View Public Profile
 
Old 03-30-2005, 11:17 AM
simptech's Avatar
Skilled Talker

Posts: 81
Location: Cape Coral, Florida, United States
Trades: 0
Just tested it in IE and it worked
__________________

Please login or register to view this content. Registration is FREE

FREE PHP scripts for your website!
simptech is offline
Reply With Quote
View Public Profile
 
Old 04-01-2005, 03:57 PM
Experienced Talker

Posts: 36
Trades: 0
Do you know how to do rounded corners (CSS) for tables? I was redirected to the following site: http://www.alistapart.com/articles/customcorners/ but I have no idea of how to go about it. If necessary, I can post the code I have so that you can use to give it a try.
common_sense is offline
Reply With Quote
View Public Profile
 
Old 04-01-2005, 05:06 PM
drewrockshard's Avatar
Super Talker

Posts: 100
Name: Drew
Location: Garland (Dallas), Texas
Trades: 0
go ahead, i can help if you want.
__________________
Best Regards,
Drew Decker

Please login or register to view this content. Registration is FREE
drewrockshard is offline
Reply With Quote
View Public Profile
 
Old 04-02-2005, 11:43 AM
Experienced Talker

Posts: 36
Trades: 0
Here it is:

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Form test</title>
<style type="text/css">
form {display:inline;font-family: Arial;font-weight: bold;font-size: 17px;color: #ffffff;}
legend {color:#000000;}
.lbl {width:40%;float: left;text-align: right;font-weight: bold;}
.npt {width:55%;float: right;text-align: left;}
#f1 {width: 400px;height: 250px;border: 5px ridge #777;padding: 20px;margin: 0px auto;text-align:right;background-color:#99ccff;float: center;}
#f2 {width: 400px;height: 250px;border: 5px ridge #777;padding: 10px;margin: 0px auto;text-align:right;background-color:#6699cc;float: center;}
#f3 {width: 400px;height: 250px;border: 5px ridge #777;padding: 10px;margin: 0px auto;text-align:right;background-color:#6699cc;float: center;}
.button {width:100px;margin-right:6px;}
</style>
</head>

<body>
<br>
<div id="f1">

<div id="f2">
	<form method="POST" action="">
			<fieldset>
				<legend>COMPANY INFORMATION</legend>
				<div class="lbl">COMPANY NAME: </div>
				<div class="npt"><input type="text" name="company_name" /></div>
				<div class="lbl">FIRST NAME: </div>
				<div class="npt"><input type="text" name="f_name" /></div>
				<div class="lbl">LAST NAME: </div>
				<div class="npt"><input type="text" name="l_name" /></div>
				<div class="lbl">STREET: </div>
				<div class="npt"><input type="text" name="street" /></div>
				<div class="lbl">LOCATION: </div>
				<div class="npt"><input type="text" name="location" /></div>
				<div class="lbl">DISTRICT: </div>
				<div class="npt"><input type="text" name="district" /></div>
				<div class="lbl">PHONE NO: </div>
				<div class="npt"><input type="text" name="phone" /></div>
				<div class="lbl">FAX NO: </div>
				<div class="npt"><input type="text" name="fax" /></div>
			</fieldset>
		</form>
	</div>
<br>


<div id="f3">
	<form method="POST" action="">
			<fieldset>
				<legend>SHIPPING INFORMATION</legend>
							<div class="lbl">COMPANY NAME: </div>
							<div class="npt"><input type="text" name="company_name" /></div>
							<div class="lbl">FIRST NAME: </div>
							<div class="npt"><input type="text" name="f_name" /></div>
							<div class="lbl">LAST NAME: </div>
							<div class="npt"><input type="text" name="l_name" /></div>
							<div class="lbl">STREET: </div>
							<div class="npt"><input type="text" name="street" /></div>
							<div class="lbl">LOCATION: </div>
							<div class="npt"><input type="text" name="location" /></div>
							<div class="lbl">DISTRICT: </div>
							<div class="npt"><input type="text" name="district" /></div>
							<div class="lbl">PHONE NO: </div>
							<div class="npt"><input type="text" name="phone" /></div>
							<div class="lbl">FAX NO: </div>
							<div class="npt"><input type="text" name="fax" /></div>
							<div class="lbl">C/O: </div>
							<div class="npt"><input type="text" name="care_of" /></div>
						</fieldset>
					<input class="button" type="submit" value="SEND">
					</form>
					</div>
					</div>
					</body>
					</html>
With a slight difference, it's not side by side. Rather, its one below the next.

Anyway, apart from the fact that I have been unable to do the round corners, I noticed that the labels are not in line with their respective input fields. It probably is a size thing, I really don't know.

Thanks for the help!
common_sense is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Creating two forms side by side
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.42673 seconds with 12 queries