CSS Implementation of rounded Div

Source: Internet
Author: User
Code

<! Doctype HTML public " -// W3C // dtd xhtml 1.0 transitional // en "   " Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd " >
< HTML xmlns = " Http://www.w3.org/1999/xhtml " >
< Head >
< Meta HTTP - Equiv = " Content-Type " Content = " Text/html; charset = UTF-8 "   />
< Title > CSS rounded Div </ Title >
</ Head >
< Body >
< Div Style = " Margin: 0 4px; Background: # b0bec7; Height: 1px; overflow: hidden; " > </ Div >
< Div Style = " Margin: 0 2px; Border: 1px solid # b0bec7; border-width: 0 2px; Background: # e1e7e9; Height: 1px; overflow: hidden; " > </ Div >
< Div Style = " Margin: 0 1px; Border: 1px solid # b0bec7; border-width: 0 1px; Background: # e1e7e9; Height: 1px; overflow: hidden; " > </ Div >
< Div Style = " Margin: 0 1px; Border: 1px solid # b0bec7; border-width: 0 1px; Background: # e1e7e9; Height: 1px; overflow: hidden; " > </ Div >

< Div Style = " Background: # e1e7e9; Border: 1px solid # b0bec7; border-width: 0 1px; " >
  < Div Style = " Font-size: 12px; font-weight: bolder; font-family: verdana; color: #258; padding: 2px 10px 5px; " >
Title, here you want to change the background color, add background in the style of this Div - Color Attribute. You need to set the width after changing it. Otherwise, it will be ugly.
  </ Div >
  < Div Style = " Background: # FFF; margin: 0 3px; font-size: 11px; font-family: verdana; color: #333; padding: 5px 10px; overflow: hidden; " >
This is the content area and the background color is white. If you want to be the same as the title, change the background color to # e1e7e9, which is the same as the background color of the 2nd Div.
  </ Div >
</ Div >

< Div Style = " Margin: 0 1px; Border: 1px solid # b0bec7; border-width: 0 1px; Background: # e1e7e9; Height: 1px; overflow: hidden; " > </ Div >
< Div Style = " Margin: 0 1px; Border: 1px solid # b0bec7; border-width: 0 2px; Background: # e1e7e9; Height: 1px; overflow: hidden; " > </ Div >
< Div Style = " Margin: 0 2px; Border: 1px solid # b0bec7; border-width: 0 2px; Background: # e1e7e9; Height: 1px; overflow: hidden; " > </ Div >
< Div Style = " Margin: 0 4px; Background: # b0bec7; Height: 1px; overflow: hidden; " > </ Div >
</ Body >
</ Html >

 

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.