Css defines the input text input box style

Source: Internet
Author: User

 

This is a result Image. Let's take a look at the source html code of input.

The code is as follows: Copy code

<Div id = "comment">
<Form id = "commentform" method = "post" action = "post. php" enctype = "multipart/form-data">
     
<Div id = "input">
<Label class = "name" for = "email"> </label>
Nickname:
<Input name = "username" type = "text" class = "msginput" id = "usernamecontent" value = "" size = "20" maxlength = "30"/>
</Div>
<Div id = "input">
<Label class = "email" for = "email"> </label>
Email address: <input name = "email" type = "text" class = "msginput" id = "useremailcontent" value = "" size = "20" maxlength = "30"/>
</Div>
        
<Textarea id = "commentarea" class = "msginput" name = "content"> </textarea> <br/>
<Input type = "submit" value = "submit" class = "msgsubmit"/>
</Form>
</Div>

Haha, it seems that there is no difference. Let's tell you the difference is id.

The code is as follows: Copy code

. Msginput {
Width: 300px;
Border: none;
Background: #432914;
Margin: 0 0 0 30px;
Background: url (images/line.jpg) no-repeat bottom left;
Color: # f5e2ca;
}

# Input {

Height: 40px;
}
# Commentarea {
Height: 100px;
Overflow: auto;
}
. Msgsubmit {
Float: right;
Border: none;
Background: # 8d653a;
Height: 28px;
Width: 54px;
Margin: 20px 60px 0 0px;
}
# Commentname {
Line-height: 30px;
Padding: 0 0 0 15px;
Color: #432914;
Background: url (images/nameback.jpg) no-repeat top left;
Height: 36px;
Width: 90px;
Display: block;
}

Let's take a closer look. www.111cn.net is originally reproduced on this site.

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.