Implement groupbox effects similar to winform in HTML

Source: Internet
Author: User

When using ASP. NET web components, I found that the editing control has the groupbox effect. I never knew how to make this effect on the Web. Now I know. Use the following htmlCodeThe key is fieldset and legend labels:

< Fieldset Style = "Border-color: # e2ded6; border-width: 1px; border-style: solid ;" >
< Legend Style = "Color: #333333; font-size: 0.8em; font-weight: bold ;" >
Attribute Grid
</ Legend >
< Div Style = "Margin-left: 10px" >
< Select >
< Option > Longqi </ Option >
< Option > Furious </ Option >
</ Select >
</ Div >
< Div Style = "Margin-left: 10px" >
< Select >
< Option > Red </ Option >
< Option > Blue </ Option >
</ Select >
</ Div >
</ Fieldset >


This is the result:

Attribute GridUnit:

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.