Results 1 to 5 of 5

Thread: positioning a form.

  1. #1
    Join Date
    Jul 2009
    Location
    Coquitlam BC Canada
    Posts
    46
    Thanks
    0
    Thanked 4 Times in 4 Posts

    Default positioning a form.

    Site: http://www.apps.hostzi.com/

    In the navigation bar, I want to include a search bar but as you can see, it is aligned at the bottom. Can anyone help on aligning it to the middle?

  2. #2
    Join Date
    Jul 2009
    Location
    Binus University
    Posts
    472
    Thanks
    78
    Thanked 21 Times in 21 Posts

    Default

    Code:
    <form style="height:16px;margin-top:-5px; vertical-align:middle;" align="middle" ><input type="text" name="q">
    add the margin-top:-5px,

    good luck..

  3. #3
    Join Date
    Jul 2009
    Location
    Coquitlam BC Canada
    Posts
    46
    Thanks
    0
    Thanked 4 Times in 4 Posts

    Default

    Thanks a lot! It works!

  4. #4
    Join Date
    Jul 2009
    Location
    Coquitlam BC Canada
    Posts
    46
    Thanks
    0
    Thanked 4 Times in 4 Posts

    Default

    But I encountered another problem: the border's height at the left of the search dosen't fill the whole bar.

  5. #5
    Join Date
    Jul 2009
    Location
    Coquitlam BC Canada
    Posts
    46
    Thanks
    0
    Thanked 4 Times in 4 Posts

    Default

    never mind. I figured it out.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •