Help - Search - Members - Calendar
Full Version: Html Form
Scenyx Entertainment Community > Off Topic Forums > Other Platforms > Personal Computer (PC, MAC, etc) General Talk
KDragon
ok i want to add a google search to my page header but it wont fit. no matter what i do it takes 100% of the width of the page and its getting vary anoying!! grr.gif

Well heres the code im using

CODE

<!-- Search Google -->
<center><FORM method=GET action="http://www.google.com/search" target="_top">
<input type=hidden name=ie value=UTF-8>
<input type=hidden name=oe value=UTF-8> <img border="0" src="http://www.google.com/logos/Logo_25wht.gif" align="center">
<INPUT TYPE=text name=q size=15 maxlength=255 value="">
<INPUT type=submit name=btnG VALUE="Google Search" target="_top">
</FORM></center>
<!-- Search Google -->


My site is here.

Edit: I still need a torrent tracker php or somthing to run a tracker with.
geniusalz
<div style="width:300px">
<!-- Search Google -->
<center><FORM method=GET action="http://www.google.com/search" target="_top">
<input type=hidden name=ie value=UTF-8>
<input type=hidden name=oe value=UTF-8> <img border="0" src="http://www.google.com/logos/Logo_25wht.gif" align="center">
<INPUT TYPE=text name=q size=15 maxlength=255 value="">
<INPUT type=submit name=btnG VALUE="Google Search" target="_top">
</FORM></center>
<!-- Search Google -->
</div>
change 300 to suit your needs
KDragon
Thanks a lot! beerchug.gif
KDragon
ok i must be missing somthing cuz i cant have any thing on eather side of the form it pops up above it look at what i mean here i would love any help i can get on this. thx uhh.gif

Edit: i want KDragon.com on the same line as the google search so the bkg img wont tile just so you know what im shooting for and if im a idot plz flame away! jester.gif
KDragon
bump uhh.gif
enderandrew
It's really simple. Inside your code for the Google search, you're creating a new table, which will always bump down to the next line.

CODE
<body bgcolor="#949EA5" text="#EFFFFF" link="#EFFFFF" vlink="#EFFFFF" alink="#EFFFFF">

<div style="height: 100; align: center">
 <table border="0" cellspacing="0" cellpadding="0" width="100%">
   <tr height="68">
     <td width="275">
       <img border="0" src="/Forums/style_images/mohaa.cz/logo4.gif" align="center" width="225" height="68">
     </td>
     <td width="100%" background="/Forums/style_images/mohaa.cz/logo_side.gif" align="right">
       <FORM method=GET action="http://www.google.com/search">
         <input type=hidden name=ie value=UTF-8>
         <input type=hidden name=oe value=UTF-8>
         <A HREF="http://www.google.com/">
         <IMG SRC="http://www.google.com/logos/Logo_40gry.gif"
         border="0" ALT="Google" align="absmiddle" width="128" height="53"></A>
         <INPUT TYPE=text name=q size=19 maxlength=255 value="">
         <INPUT type=submit name=btnG VALUE="Google Search">
       </FORM>
     </td>
   </tr>
   <tr height="32">
     <td width="100%" background="/Forums/style_images/mohaa.cz/tile_sub.gif" colspan="2">
       <b><font face="Tahoma" size="2"><a href="Forums/">Forums</font></b></a>
     </td>
   </tr>
 </table>
</div>
</body>
KDragon
Thanks i think i got it this time
enderandrew
Glad to be of assistance.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.