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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T16:50:09+00:00 2026-06-03T16:50:09+00:00

i have a simple : <input type=text placeholder=search .. value= id=search/> i just added

  • 0

i have a simple :

<input type="text" placeholder="search .." value="" id="search"/>

i just added some cs rules like:

#search{
padding:2%;
text-indent:1%;
width:30%;
}

but when i try the same input in different browsers like FF/Chrome i see somenthing wrong , for example in chrome the text line-height inside the input is different and placeholder still remain also when focus inside input, while on FF is all ok and placeholder fadeout when i focus inside input… any good rule/rules to fix line-height and text-indent and placeholder fade for all(almost all) browsers?

  • 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-03T16:50:11+00:00Added an answer on June 3, 2026 at 4:50 pm

    It’s a feature in Chrome that the placeholder text does not disappear on focus but only on input. Should you wish to override that, you need to use JavaScript (pretty much defeating the idea of placeholder).

    The line height is not changed by any settings you have disclosed. It may vary across browsers due to different defaults.

    The text-indent property applies to block containers only. To set spacing on the left, which seems to be the idea here, use padding-left, preferably using the em unit. It is not robust to make the spacing depend on the element’s width, especially if that width is set as relative to the available width.

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

Sidebar

Related Questions

I have a simple form like this: <form name=serachForm method=post action=/home/search> <input type=text name=searchText
I have a simple input control : <input type=text min=0 max=100 value=0> then I
I have a simple <input type=text/> styled with the following: font-size:1.5em;line-height:1.5em;padding:.6em .4em; It displays
i have the following simple script <input class=input type=text name=password style=color: #797272; value= <?php
I have a simple form with some text inputs and a file input. I
I have a simple text box and button type input on my page. <input
I have a simple form and inside there are two input fields text type.
Say I have a simple form like this: <html> <head> <meta http-equiv=Content-Type content=text/html; charset=utf-8
I have simple form. <form target=_blank action=somescript.php method=Post id=simpleForm> <input type=hidden name=url value=http://...> <input
I have this simple piece of HTML code: <div> <input type=file name=english-file /> </div>

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.