Forum Moderators: open

Message Too Old, No Replies

Getting rid of the spaces between forms!

Can somebody please provide me with a FIX???

         

Village Idiot

6:06 pm on May 14, 2002 (gmt 0)



Ok Ive got all my Form Dilemas solved, EXCEPT for one little/BIG thing.!!! I cant seem to get RID of the Spaces between my forms... Ive tried justa bout everything!!!! And everything I try seems to go pretty good until I test it, THEN the Freaking forms WONT work :o!!!
First Ive tried the "HACK" to embed the form in a table, placing the open and close form tags between the table elements, THAT dosent work.. Hell, Ive tried everything, and still nothing works!!!!
Is there any "Form" Freaks out there that can provide me with a FIX.??? I swear Im about to Freak out!!!! Sorry to be so Dam picky, one of my computer Geek buddies, tells me... Ahhh Get over it.. Live with the Spaces between the Forms he tells me... The problem is, is that I am building a very upscale related site, and everything appearance wise has got to be "Right up Towne" which includes some very neat and tidy Graphics!!!!

Can somebody PLEASE lend me a helping hand here??? I mean, Im justa bout ready to grab one of my favorite BaseBall Bats and drive out to one of my favorite Dump Yards, and have a good go at some old Televisions and Refrigurators or whatever else I can find lyeing round :o!!!! Below I have included the "EXACT" Form CODE that I am trying to get RID of the Form Borders/Spaces, it keeps automatically throwing at me everytime I go to preview my page...!!!! BTW ... WHY the hell is it anyways that all Forms seem to Automatically do this to begin with???? I mean, for cryin out loud, WHY are they programed that way to begin with.... How it should be, is that one should ideally be able to resize the Dam things WITHOUT any spaces, just as one might with a Table or a cell, you know adjust and Cell Spacing, Cell Padding, Borders, etc. etc. .... WHY does everything always have to be such a Bitch to deal with :o????

Ok ..... Sorry for the Ramble here but I just had to get this off my chest, before I totally go Bezerk...!!!!

Listed below is the code I speak of... If Anybody can PLEASE provide me with a FIX for this, if you could ADD it to this Snippit here I would be Profoundly GRATEFUL.... And it would also save me a trip from driving out to the Dump Yard!!!!!!

Thanks Everybody!!!!

Signed: The Village Idiot

pcguru333

6:07 pm on May 14, 2002 (gmt 0)

10+ Year Member



Uh...

I don't see any code....

Village Idiot

6:08 pm on May 14, 2002 (gmt 0)



OPPS..... Im so upset I forgot to include the Code...

Here it is!!!!!

<form action="/cgi-sys/entropysearch.cgi" target=searchwindow>
Search Query <input type="text" name="query" value="">
<input type="hidden" name="user" value="fragrant">
<input type="hidden" name="basehref" value="http://fragrantscents.com">
<input type="hidden" name="template" value="default">
<input type="submit" value="Search">
</form>

pcguru333

6:13 pm on May 14, 2002 (gmt 0)

10+ Year Member



That is better...

Try removing whitespace between the tags...

i.e.

<form action="/cgi-sys/entropysearch.cgi" target=searchwindow>
Search Query <input type="text" name="query" value=""><input type="hidden" name="user" value="fragrant"><input type="hidden" name="basehref" value="http://fragrantscents.com"><input type="hidden" name="template" value="default"><input type="submit" value="Search">
</form>

moonbiter

6:14 pm on May 14, 2002 (gmt 0)

10+ Year Member



<style type="text/css">
form {
margin: 0px;
padding: 0px;
}
</style>

moonbiter

6:15 pm on May 14, 2002 (gmt 0)

10+ Year Member



And if you mean the input elements in the form:

input {
margin: 0px;
padding: 0px;
}

Village Idiot

6:36 pm on May 14, 2002 (gmt 0)



Weeeeeeeeeell....... DANG!!!

I tried removing the Spaces between the tags PCguru... No such luck..! Nothin changed..

And Im very sorry Moonbiter BUT although I see the added CSS Code you sent, Im ashamed to say, I dont have a Clue as to knowing exactly HOW to add it into the Code in my example.... THATS the whole problem.... I have been trying to ADD this and ADD that to my Code, BUT Im not getting ANYTHING to work :o
Im not putting something in the right place somewhere!!!!!

Ive been trying to figure out WHAT to Put and WHERE to put it (now BE NICE:)!!! now for days, STILL with NO LUCK :o!!!!!

Could you PLEASE tell me where to Stick this Code (now BE NICE:) you just sent me in with the Code I have used in my example!!!!!! THEN I could Mello out a little bit, cause Im about to Break my Keyboard Im hitting these Keys so hard :o!!!!!!!!!!!

After all.... I am only a Humble Idiot who lives in the Village :o

moonbiter

7:44 pm on May 14, 2002 (gmt 0)

10+ Year Member



You add the css block to the head of the html document.

I would also suggest putting the hidden input elements either at the beginning or the end of the form to avoid the spacing problem -- it seems like they take up some space in IE no matter what.

So your markup would look something like this.

<html>
<head>
<title>Untitled</title>
<style type="text/css">
form {
margin: 0px;
padding: 0px;
}
input {
margin: 0px;
padding: 0px;
}
</style>
</head>
<body>
<form action="/cgi-sys/entropysearch.cgi" target="searchwindow">
<label for="query">Search Query</label> <input type="text" name="query" value="" />
<input type="submit" value="Search" />
<input type="hidden" name="user" value="fragrant" />
<input type="hidden" name="basehref" value="http://fragrantscents.com" />
<input type="hidden" name="template" value="default" />
</form>
</body>
</html>

Another thought: you could also theoretically put a class on the hidden elements and then use CSS to set the display property on them to none. However, I'm not sure if their values would be passed along with the form when it was submitted (I suspect that it would depend on the browser). You would have to test it, but it's worth a try. This markup would look like:

<html>
<head>
<title>Untitled</title>
<style type="text/css">
form {
margin: 0px;
padding: 0px;
}
input {
margin: 0px;
padding: 0px;
}
input.hidden {
display: none;
}
</style>
</head>
<body>
<form action="/cgi-sys/entropysearch.cgi" target="searchwindow">
<label for="query">Search Query</label> <input type="text" name="query" value="" />
<input type="submit" value="Search" />
<input type="hidden" name="user" value="fragrant" class="hidden" />
<input type="hidden" name="basehref" value="http://fragrantscents.com" class="hidden" />
<input type="hidden" name="template" value="default" class="hidden" />
</form>
</body>
</html>

Village Idiot

8:08 pm on May 14, 2002 (gmt 0)



!!!!:o:):o:)YESS:):o:):o!!!!

OUT FREAKING STANDING MOONBITER !!!!!!!!!!!!!!!!!!

PERFECT !!!!!!!!!! YOU HAVE MADE MY DAY.... AND I THANK YOU VERY VERY VERY MUCH!!!!!!

HERE HERE TO MOONBITER :)!!!!

I OWE YOU SOME!!!!!!!!

VILLAGE!!!!!!!!