Instead of textarea
, you can use div
with contentEditable attribute:
div {
display: inline-block;
border: solid 1px #000;
min-height: 200px;
width: 300px;
}
<div contentEditable="true"></div>
More Related Contents:
- Menu does not align correctly in Safari
- My inline-block elements are not lining up properly
- How can I select the last element with a specific class, not last child inside of parent?
- How to make CSS3 rounded corners hide overflow in Chrome/Opera
- Bootstrap full-width with 2 different backgrounds (and 2 columns)
- How can I expand floated child div’s height to parent’s height?
- Minimum and maximum value of z-index?
- Adding HTML entities using CSS content
- How can I find an element by CSS class with XPath?
- Should I use px or rem value units in my CSS? [closed]
- Why media queries has less priority than no media queries css
- Flexbox fill available space vertically
- Outline radius?
- Easier way to create circle div than using an image?
- Customizing Increment Arrows on Input of Type Number Using CSS
- How can I make a display:flex container expand horizontally with its wrapped contents?
- Remove outline from select box in FF
- How to make div’s percentage width relative to parent div and not viewport
- Why my inline-block divs are not aligned when only one of them has text? [duplicate]
- masking image with CSS
- Absolute position and Overflow:hidden
- How to insert spaces/tabs in text using HTML/CSS
- What is the ::content/::slotted pseudo-element and how does it work?
- How to remove/ignore :hover css style on touch devices
- How to center buttons in Twitter Bootstrap 3?
- How do I stretch a background image to cover the entire HTML element?
- CSS override rules and specificity
- wrap anchor tag around li element
- How can I control the height of an Option element in Webkit?
- How to set a percentage height value in HTML/CSS