create a radial gradient around navigation - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Nav Bar

Description

create a radial gradient around navigation

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">
#grad {<!--from  ww w .  j  a  va  2  s. c o m-->
   width:501px;
   height:100px;
   border:solid Chartreuse;
   background-image:-webkit-radial-gradient(yellow 0%, blue 100px);
}

#grad p {
   text-align:center;
   margin:auto;
   margin-top:41px;
   color:pink;
}
</style> 
 </head> 
 <body> 
  <div id="grad"> 
   <p>Lorem ipsum dolor sit amet, con</p> 
  </div>  
 </body>
</html>

Related Tutorials