0

JsFiddle The problem is in the placeholder, when i make the font-size higher it looks wrong, check the jsfiddle, the text looks split in half.

<input type="text" id="txtSearch" placeholder="Search" />

#txtSearch {

    width:1050px;

    height:35px;

    background-color:#605784;

    border-width:0px;

}

::-webkit-input-placeholder {

    color: White;

    font-family:'Open Sans', sans-serif;

    font-size:15pt;

    position:relative;

    top:-5px;

}
AlanRubinoff
  • 385
  • 9
  • 30

1 Answers1

0

checkout this solution from stackoverflowThe input and its placeholder must have matching font styles

    input,
    ::-webkit-input-placeholder {

    color: White;

    font-family:'Open Sans', sans-serif;

    font-size:15pt;

    position:relative;

    top:-5px;

}
Community
  • 1
  • 1
santhosh
  • 1,919
  • 3
  • 21
  • 33