Legend in absolute position - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Absolute Position

Description

Legend in absolute position

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 a 2s  . c o m-->
 {
   height:151px;
   left:6px;
   top:46px;
   width:461px;
   position:absolute;
   display:block;
}

input {
   left:81px;
   top:0px;
   width:181px;
   position:relative;
   display:inline-block;
}

label {
   left:6px;
   top:0px;
   position:relative;
   display:inline-block;
}

legend {
   position:relative;
}
</style> 
 </head> 
 <body> 
  <fieldset style=""> 
   <legend>Lorem ipsum dol</legend> 
   <label>Lorem </label> 
   <input id="txtFromPatient" class="readonly" readonly="" tabindex="-1" type="text"> 
  </fieldset>  
 </body>
</html>

Related Tutorials