Form and spaces

W

Wings

Someone here - sorry, I forgot who - posted this neat little Google Search
form which I use in a couple of places at my site. I've only modified it
slightly from the original, but this and the original does something on a
page which I don't understand. The window and button always skip a line from
the material above it and add another blank line between it and the material
that follows. Why is that? I'd like to have the window and button on the
same line with some other text, but that doesn't appear like it's going to
happen.

Thanks for any comments in advance.

<form>
<input type="text" name="newLocation" size="20"><input type="button"
value="Search Google" name="btnGo"
onclick="window.location.href='http://www.google.com/search?q=' +
newLocation.value">
</form>
 
J

Jonathan N. Little

Wings said:
Someone here - sorry, I forgot who - posted this neat little Google Search
form which I use in a couple of places at my site. I've only modified it
slightly from the original, but this and the original does something on a
page which I don't understand. The window and button always skip a line from
the material above it and add another blank line between it and the material
that follows. Why is that? I'd like to have the window and button on the
same line with some other text, but that doesn't appear like it's going to
happen.
<snip code>

Form is displaying as block element by default. If you do not like this
then change style:

FORM { display: inline; }
 
W

Wings

That is really cool. Many thanks.

Jonathan N. Little said:
<snip code>

Form is displaying as block element by default. If you do not like this
then change style:

FORM { display: inline; }
 
J

Jonathan N. Little

Wings said:
That is really cool. Many thanks.

Great, but don't *top post*, i.e., writing above the text that you are
reply to like you did above...
And whatever your using as a newsreader doesn't snip signatures, then do
it manually!

</remove>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,038
Latest member
OrderProperKetocapsules

Latest Threads

Top