Add vertical-align: top
to textarea
.
The reason for the gap is that textarea
is an inline
(or inline-block
) element, and the gap is the space reserved for descenders in text. I don’t know exactly why the gap is different between different browsers.
More Related Contents:
- Why does my design elements look different in all browsers? UPDATE [closed]
- Menu does not align correctly in Safari
- What is a clearfix?
- How do I style a dropdown with only CSS?
- CSS technique for a horizontal line with words in the middle
- css ‘pointer-events’ property alternative for IE
- Browsers’ default CSS for HTML elements
- How to align checkboxes and their labels consistently cross-browsers
- Ignore whitespace in HTML [duplicate]
- Render a string in HTML and preserve spaces and linebreaks
- Style input type file? [duplicate]
- How can I draw vertical text with CSS cross-browser?
- Remove white space above and below large text in an inline-block element
- Cross-browser custom styling for file upload button [duplicate]
- How to make HTML Text unselectable [duplicate]
- Flexbox and Internet Explorer 11 (display:flex in ?)
- HTML/CSS – Best practice for preserving white space on certain elements?
- Flexbox alternative for IE9
- Setting a width and height on an A tag
- Image scaling causes poor quality in firefox/internet explorer but not chrome
- Fallback for CSS attributes without unit
- Specifying Tab-Width?
- header/footer/nav tags – what happens to these in IE7, IE8 and browsers than don’t support HTML5?
- How to make input autofocus in internet explorer?
- Cross browser method to fit a child div to its parent’s width
- Which browsers support data URIs and since which version?
- flex-grow not sizing flex items as expected
- Difference in applying CSS to html, body, and the universal selector *?
- How to set placeholder value using CSS?
- CSS Rounded corners