CSS settings input text box style code instance

Source: Internet
Author: User

CSS settings input text box style code instance:
Using CSS to set the INPUT element's style is one of the most commonly used operations, and of course, the most basic operation, probably not familiar with the friends who just touch css, following a simple code history to demonstrate how to set the text box style, of course, this presentation may not be particularly beautiful, The purpose of this is only to play a role in the demo, the code is as follows:

<!DOCTYPE HTML><HTML><Head><MetaCharSet= "Utf-8"><Metaname= "Author"content= "http://www.softwhy.com/" /><title>Ant Tribe</title><styletype= "Text/css">. txt{width:200px;Height:18px;Border-top:1px solid Green;Border-left:1px solid Green;Background-color:#CCC;Color:Blue;}</style> </Head> <Body> <inputtype= "text"class= "txt"value= "Ant Tribe welcomes You" /></Body> </HTML>

The above code sets the text box, and the following describes the Setup items:
1. Use width to set the width of the text box.
2. Use height to set the height of the text box.
3.border-top and Border-left can set the border style at the top or left of the text box.
4.background-color sets the background color of the text box.
5.color sets the contents of the text in the text box.
Related reading:
The 1.width property can be found in the section of the CSS's width property .
The 2.height property can be found in the section height property of CSS .
The 3.border-top property can be found in the Border-top Properties section of CSS .
The 4.border-left property can be found in the Border-left Properties section of CSS .
The 5.background-color property can be found in the Background-color Properties section of CSS .
The 6.color property can be found in the Color Properties section of CSS .

The original address is: http://www.softwhy.com/forum.php?mod=viewthread&tid=11764

For more information, refer to: http://www.softwhy.com/divcss/

CSS settings input text box style code instance

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: info-contact@alibabacloud.com 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.