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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:47:11+00:00 2026-06-13T14:47:11+00:00

How can I apply a 1px solid left border for the magnifying glass image

  • 0

How can I apply a 1px solid left border for the magnifying glass image that’s inside my text field in this case? It isn’t separate.

<!DOCTYPE html>
<html>

<head>

<style>
input[type=text] {
    width: 260px;
    padding: 5px;
    padding-right: 40px;
    outline: none;
    border: 1px solid #E5E5E5;
    border-radius: 5px;
    background-color: #FFF;
    font-family: Arial;
    font-size: 12px;
    background-position: 280px 2px;
    background-image: url('http://localhost/icon.png');/* HERE */
    background-repeat: no-repeat;
}

input[type=text]:focus {
    background-color: #FFFFFF;
    border-color: #ccc;
    box-shadow: 0px 0px 3px -1px #ccc;
    <!-- background-position: 270px -80px; -->
}

body {
    padding: 10px;
    background-color: #FFF;
}
</style>
</head>
<body>
<form>
    <div id="mainContent">
        <input placeholder="Enter product name..." type="text"> <br>
    </div>
</form>

</body>
</html>
  • 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-13T14:47:14+00:00Added an answer on June 13, 2026 at 2:47 pm

    The easiest way is to draw the border in the png itself.

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

Sidebar

Related Questions

<span style='float: left; margin: 10px; width: 60px; display: block;'> <img style='border: 1px solid #FFF;
How do I apply a class to the following so that I can apply
Simply set the border to red and borderwidth=1px. Using the F12 viewer I can
I can apply the first value from the database to the text of the
Let f x y = x * y . We can apply this function
I have the following CSS that I can apply to an HTML input tag.
I have the following CSS on a list of li items. border: 1px solid
I know that you can apply CSS in order to style objects in Flex
According to the Bourbon docs , you can use #{$all-text-inputs} to turn this: #{$all-text-inputs}
Let's say I have this text that I want to display in an HTML

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.