PDA

View Full Version : Stop form tags from adding a space.


blue27
04-09-04, 08:09 AM
How do I prevent form tags from creating a space in a table cell.

With form tags:
<form method=POST action=https://www.2checkout.com/cgi-bin/crbuyers/recpurchase.2c>
<input type=hidden name=sid value=*****>
<input type=hidden name=product_id value=**>
<INPUT type="image" border="0" src="buynow.gif" name="2co" border=0></form>

blue27
04-09-04, 08:11 AM
<form method=POST action=https://www.2checkout.com/cgi-bin/crbuyers/recpurchase.2c>
<input type=hidden name=sid value=*****>
<input type=hidden name=product_id value=**>
<INPUT type="image" border="0" src="buynow.gif" name="2co" border=0><form>

Website Rob
04-09-04, 01:39 PM
Use something similar to the following in your CSS.

input, option, select {
margin: 0;
padding: 0;
font-size: 92%;
font-weight: bold;
color: #607050;
background: #e0e0d0;
}

blue27
04-09-04, 05:33 PM
I'll give it a try.
Thanks Rob.

Charter
04-09-04, 11:54 PM
.remsp { margin-bottom: 0px; }

<form class="remsp" action="file.ext" method="post">

for browsers that support it.

blue27
04-10-04, 03:46 AM
Thanks Charter. That worked great.
Now if I could only get it to work in Netscape.

Just another reason I don't like netscape.

Charter
04-10-04, 08:47 AM
maybe for newer netscape: .remsp { display: inline; }

both: .remsp { margin-bottom: 0px; display: inline; }