Nav-bar with huge round corner - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Nav Bar

Description

Nav-bar with huge round corner

Demo Code

ResultView the demo in separate window

<html lang="en">
 <head> 
  <title>Lorem ipsum dolor sit </title> 
  <style>
.wrap {<!--  w  w w . j  a va  2  s  .  c  o  m-->
   position:relative;
   height:401px;
   width:100%;
   margin:0 auto;
   max-width:1025px;
}

.curve {
   position:absolute;
   top:0;
   left:0;
   height:100%;
   width:51%;
   overflow:hidden;
   z-index:11;
}

.curve:after {
   content:"";
   position:absolute;
   top:11%;
   left:0;
   width:100%;
   height:91%;
   border-radius:0 51% 0 0;
   box-shadow:0 0 0 1000px lightgray;
}

.rectangle {
   position:absolute;
   top:0;
   left:51%;
   height:100%;
   width:51%;
   background:lightgray;
}

html, body {
   background:Chartreuse;
}
</style> 
 </head> 
 <body translate="no"> 
  <div class="wrap"> 
   <div class="curve"></div> 
   <div class="rectangle"></div> 
  </div>  
 </body>
</html>

Related Tutorials