Creating a bar using background, border-radius, and top/bottom borders - HTML CSS CSS Property

HTML CSS examples for CSS Property:background

Description

Creating a bar using background, border-radius, and top/bottom borders

Demo Code

ResultView the demo in separate window

<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>

Related Tutorials