HTML CSS examples for CSS Property:background
Creating a bar using background, border-radius, and top/bottom borders
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> div {<!--from w w w. ja va2 s.com--> background:blue; border:10px solid red; border-left:1px solid transparent; border-right:1px solid transparent; border-top-right-radius:20px 10px; border-top-left-radius:20px 10px; height:100px; } </style> </head> <body> <div></div> </body> </html>