Trouble Centering Something on A Page - Get a free feature link for helping :-)

Discussion in 'HTML & Website Design' started by jg123, Feb 14, 2007.

  1. #1
    If you can have a look at http://www.searchingtech.com/submit.php, I want to center the google search box, anyone help?

    Free permanent featured link in the directory for the person that can.

    thanks
     
    jg123, Feb 14, 2007 IP
  2. Logicaly

    Logicaly Peon

    Messages:
    75
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try doing this...

    <div align= center> put your code here </div>

    And if that doesnt work, please let me know.
     
    Logicaly, Feb 15, 2007 IP
  3. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #3
    Gawd! I haven't jacked with table layouts in four years. What a cluster&#8230;

    You don't have the form in a td, where it must be
    
    <tr><!-- Google CSE Search Box Begins --><form id="searchbox_018369895419648826657:lriklyeng_4" action="http://www.google.com/cse"><input type="hidden" name="PHPSESSID" value="b27eab81802ed50cd4db3fb774a3d8e6" /><input type="hidden" name="cx" value="018369895419648826657:lriklyeng_4" /><input name="q" type="text" size="30" /><input type="submit" name="sa" value="Search" /><input type="hidden" name="cof" value="FORID:1" /></form><script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=searchbox_018369895419648826657%3Alriklyeng_4"></script></td><!-- Google CSE Search Box Ends -->
    Code (markup):
    Do something like this:
    
    <tr>
      <td colspan="99">
        <form method="get" action="...
          ...
        </form>
        <script...
        </script>
      </td>
    </tr>
    =======
    form {
        text-align: center;
        }
    Code (markup):
    cheers,

    gary
     
    kk5st, Feb 15, 2007 IP
  4. praetorian guardian

    praetorian guardian Guest

    Messages:
    270
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #4
    at line 13.. you need to close the /table </br> and then make a new centered table.. somthing like this;

    <td> <form action="/index.php" method="get"><input type="hidden" name="PHPSESSID" value="308f5615c7739157ad1c51ce4e72df45" /></td>
    </table></br><center><table>
    <td width="160" background="/templates/images/header_04.gif" valign="middle"><input type="text" name="q" size="20" class="text" /></td>
     
    praetorian guardian, Feb 15, 2007 IP
  5. jg123

    jg123 Notable Member

    Messages:
    6,006
    Likes Received:
    387
    Best Answers:
    0
    Trophy Points:
    295
    #5
    Ok, I will try some of the above. I think I tried this already "<div align= center>" with no luck. I am not that clear on some of the above instructions. If you can please give me the exact code I need and where to place it.

    thanks
     
    jg123, Feb 15, 2007 IP