Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3790842
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T12:22:38+00:00 2026-05-19T12:22:38+00:00

I have a search textbox and two image buttons on a page I created

  • 0

I have a search textbox and two image buttons on a page I created with ASP.NET.

When I look at the page with either IE8, Google Chrome or Opera, the textbox does not align with the two image buttons. The buttons appear higher than the textbox and I can’t tell why.

Here is the key markup:

<div id=searchbar>
    <div id=Panel1
        onkeypress="javascript:return WebForm_FireDefaultButton(event, 'btnSearch')">
        <input id=txtSearch type=text name=ctl00$txtSearch>
        <input id=btnSearch title=Search src="Test_files/search.png"
            type=image name=ctl00$btnSearch>
        <input id=btnAdvanced title="Advanced Search" src="Test_files/adv.png"
            type=image name=ctl00$btnAdvanced>
    </div>
</div>

NOTE: I realize there are a few strange things here such as no quotes around the ids. But there ARE quotes around them in my source. The above snippet is from saving the content from IE and it made a number of changes to the markup.

I also posted the same code at http://www.blackbeltcoder.com/Test/Test.htm if anyone would be willing to take a look. The issue is with the search controls to the right of the black bar near the top.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T12:22:39+00:00Added an answer on May 19, 2026 at 12:22 pm

    Try

    vertical-align:text-bottom;
    

    on the elements that are too high. It’s a common problem. You can try out other options for that CSS property too if that isn’t quite right. Have a look here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have asp.net TextBox with ontextchanged event this is search text box in my
I have created an ASP.NET 3.5 form page. At the top I have placed
I have two search buttons on a page, one linked to a dropdown list
Here's the scenario. I have a search page with a TextBox that allows someone
I am building a search view in asp.net MVC 2 So I have: public
I have two input elements inside a div (a textbox and an image), intended
On a page I have: <asp:TextBox runat=server ID=EmailTextBox AutoPostBack=true OnTextChanged=EmailTextBox_Changed /> <asp:Button runat=server ID=SearchButton
I have an ASP.net page. That has an Ajax Toolkit Tab Control. That has
I have a really simple search form with the following Label (Search) Textbox (fixed
I have a textbox whose input is being handled by jQuery. $('input.Search').bind(keyup, updateSearchTextbox); When

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.