Add non-editable text after cursor in input box with input and paragraph - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Text

Description

Add non-editable text after cursor in input box with input and paragraph

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">
input {<!--from w w w.  j av a2s  . c o  m-->
   width:100%;
   float:left;
   font-size:17px;
   padding:0px 121px 0px 0px;
   box-sizing:border-box;
}

p {
   margin:0px 0px 0px -100px;
   float:left;
   padding-top:6px;
   cursor:default;
   -webkit-touch-callout:none;
   -webkit-user-select:none;
   -khtml-user-select:none;
   -moz-user-select:none;
   -ms-user-select:none;
   user-select:none;
}
</style> 
 </head> 
 <body> 
  <input id="edit_input" type="text" autocapitalize="off" autocorrect="off" spellcheck="false" autofocus onfocus="this.value = this.value;" value="editabletext" style="width:100%;"> 
  <p>SOME TEXT</p>  
 </body>
</html>

Related Tutorials