give border a title with text in the middle - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Border Style

Description

give border a title with text in the middle

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

fieldset {<!-- w w  w  .  j  av a2 s  . co m-->
   border : none;
   border-top : 1px solid #000;
}


      </style> 
 </head> 
 <body> 
  <fieldset> 
   <legend>Title</legend> Here is some demo content 
  </fieldset>  
 </body>
</html>

Related Tutorials