HTML CSS examples for CSS Layout:Absolute Position
Width of position:absolute input tag
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> * {<!--from w ww .j av a2s . co m--> margin:0; padding:0; } div { margin:21px 0 0 21px; } #newContainer { background-color:Chartreuse; width:201px; height:24px; padding:2px 3px 0px 3px; border:0; } .input { width:100%; height:21px; background-color:yellow; border:none; } </style> </head> <body> <div id="newContainer"> <input class="input" type="text"> </div> </body> </html>