Nunzio's Message Board Forum Index
Nunzio's Message Board

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How can I eliminate the vertical space following a form?

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    Nunzio's Message Board Forum Index -> HTML FAQ (tips & tricks)
View previous topic :: View next topic  
Author Message
Nunzio
Site Admin


Joined: 08 Aug 2003
Posts: 90
Location: Tharsis Ridge (Martian lowlands)

PostPosted: Sat Aug 09, 2003 9:34 am    Post subject: How can I eliminate the vertical space following a form? Reply with quote

How can I eliminate the vertical space following a form?

You cannot (to my knowledge) eliminate the line space. FORM is a block level element and therefore will always have one line space above and below. There is a workaround using CSS positioning. Some variation of this should work...

Code:
style="position:relative; top:-17px; left:25px;"

Add it to the tag of the element directly below the form. Here's an example:

Code:
<FORM action="http://somesite.com/prog/adduser"
           method="post">
   First name: <INPUT type="text" name="firstname"><BR>
   Last name: <INPUT type="text" name="lastname"><BR>
   email: <INPUT type="text" name="email"><BR>
  <INPUT type="radio" name="sex" value="Male"> Male<BR>
  <INPUT type="radio" name="sex" value="Female"> Female<BR>
  <INPUT type="submit" value="Send"> <INPUT type="reset">
</FORM>
<p style="position:relative; top:-17px; left:25px;">
stuff is here but there is no line space </p>
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    Nunzio's Message Board Forum Index -> HTML FAQ (tips & tricks) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group