Make a div auto grow where contenteditable is set to true - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Div Table

Description

Make a div auto grow where contenteditable is set to true

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
 </head> <!--  ww w  .  ja  v  a2 s  .co  m-->
 <body> 
  <div contenteditable="true" style="background: #ddd; border: 3px solid #ccc; min-height:60px"></div>  
 </body>
</html>

Related Tutorials