Select example of the DIV+CSS standard for making Web Forms

Source: Internet
Author: User
css|select| Standard | Web page you've all seen the various input buttons defined with CSS, but for select is not a simple way to define input. Here's another way to get your select to dazzle with a different CSS definition.

CSS section:. SELECT * {
margin:0;
padding:0;
}

. Select {
border:1px solid #cccccc;
Float:left;
Display:inline;
}

. Select div {
border:1px solid #f9f9f9;
Float:left;
}

/* Sub Selector, in the FF and other non-IE browser identification * *
. select>div {
width:120px;
height:17px;
Overflow:hidden;
}

/* Wildcard selector, only in IE browser to identify * *
* HTML. Select div Select {
Display:block;
Float:left;
margin: -2px;
}

. Select Div>select {
Display:block;
width:124px;
Float:none;
margin: -2px;
padding:0px;
}

. select:hover {
border:1px solid #666666; The effect of the mouse move
}

. Select Select>option {
text-indent:2px; Option indent 2px in non IE browsers such as FF
}
XHTML section:


Web Teaching Network Web Teaching Network Web Teaching Network



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.