PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

Search Form position on page

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Search Form position on page

    I do not write code. I am using the code from wrensoft (below) for my search form. I need a simple line of code that will place the form either to the right hand side or the middle of my web page. Again I do not write code, but I can copy and paste. Need exact info

    <form method="GET" action="search.php">

    <input type="text" name="zoom_query" size="20">

    <input type="submit" value="Search">

    Results per page:

    <select name="zoom_per_page">

    <option selected>10</option>

    <option >20</option>

    <option >100</option>

    </select>

    <br><br>

    Match:

    <input type="radio" name="zoom_and" value="0" checked>

    any search words

    <input type="radio" name="zoom_and" value="1">

    all search words

    </form>

  • #2
    The exact / best code would depend on how your existing site is constructed. e.g. if you are using tables for layout or CSS, or using HTML4 or XHTML, etc..

    One solution is to use the div tag.

    <div style="text-align: center;">
    Put all the stuff you want centered here.
    </div>

    Replace 'center' with 'right' to right align.

    If you are building a web site, it might not hurt to get a book on basic HTML. Could save you a lot of time in the long run.

    This FAQ might also be of interest.
    Q. How do I customize the appearance of my search results with CSS?

    Comment

    Working...
    X