HTML CSS examples for CSS Layout:Absolute Position
Legend in absolute position
<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>