Change the default text font color in the search box

Source: Internet
Author: User
HTML: Sets the default text in a search box to "search" <input class= "Inner_search" type= "text" name= "#" placeholder= "Search"/>
CSS code:/* Set the search box in the navigation bar */. inner_search{/* Set search box style * * Background-color: #626262; border:1px solid; border-radius:5px; /* Set the default text style in the search box * * font-family: "Helvetica neue", Helvetica, Arial, Sans-serif; font-size:13px; Font-weight:normal; Line-height:1; /*color:red;*//* Set the search box size and position * * DISPLAY:INLINE-BLOCK; Float:left; width:280px; height:28px; MARGIN:6PX 0px; padding:5px; }
/* Set the default text color for the search box. New features of CSS3. * * input:-moz-placeholder,textarea:-moz-placeholder{color: #cccccc;} input:-ms-input-placeholder,textarea:- ms-input-placeholder{color: #cccccc;} input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{Color : #cccccc; }

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.