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 8381369
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T16:41:00+00:00 2026-06-09T16:41:00+00:00

I am currently working with an input field that will do search for my

  • 0

I am currently working with an input field that will do search for my page. But I am undergoing some css styling issues. I have placed inside the input field the submit button which is an image of a magnifying glass. the problem is that the button does not stay in its place through cross browsers. It looks ok in firefox but others browsers it looks bad.

How can i get the submit button to stay inside the input field at all times? EXAMPLE

thank you!

CSS related to object

<style>
.search-input {
    padding: 0 5px 0 22px;
    border: 2px solid #DADADA;
    height: 30px;
    font-size: 12px;
    line-height: 30px;
    border-radius: 25px;
    -moz-border-radius: 25px;
    -webkit-border-radius: 25px;

    background: #FFF; /* old browsers */

}

.search-input li {
list-style: none outside none;
}


.search-submit {
    width: 13px;
    height: 13px;
    border: none;
    background: url(http://webprolearner2346.zxq.net/css-test2/images/mag-glass.png) no-repeat;
    display: block;
    position: absolute;
     right: 170px;
    text-indent: -9999em;
    top: 60px;
}

.search{
    float: right;
    margin-right: 30px;
    margin-top: 35px;
}
</style>

HTML

<div id="header">
<div class="search"><input type="text" class="search-input" name="search" value="Search"/><input type="submit" class="search-submit" /></div>
</div>
  • 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-06-09T16:41:01+00:00Added an answer on June 9, 2026 at 4:41 pm

    Use this much better approach I came across. It works well and tested with web developer tools. Cheers@!!!

    HTML

    <div id="header">
        <form id="search">
            <input id="searchField" type="text" />
            <input id="searchSubmit" type="submit" value="" />
        </form>
    </div>
    

    CSS

    #search{
        float: right;
        margin-right: 30px;
        margin-top: 35px;
    }
    
    
    #searchField{
        border: 1px solid #FFEDE8;
        float: left;
        height: 20px;
        padding-right: 25px;
        width: 140px;}
    
    
    #searchSubmit{
        background: url("http://webprolearner2346.zxq.net/css-test2/images/mag-glass.png") no-repeat scroll 0 0 transparent;
        border: medium none;
        cursor: pointer;
        height: 20px;
        margin-left: -22px;
        margin-top: 5px;
        width: 20px;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently working on a data input form that will take as in
I have a search form tied to a backing bean that contains 4 input
I have a web application that I am currently working on that uses a
I'm currently working with jQuery and using the datepicker. I have two input fields:
I'm currently working on a dots and boxes program where the input is automatically
i am currently trying to get Input Mode Editor (IME) support working with a
Currently working with converting SQLException error messages into messages that are more useful for
Currently working on a VBScript to automate some of the dirty PST ingestion work
I am currently working on a project that needs to be able to set
I'm currently working on a cross-platform mobile app and have gone through the process

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.