Home >Web Front-end >CSS Tutorial >Can the Resize Grabber of a Textarea Element be Customized?

Can the Resize Grabber of a Textarea Element be Customized?

Linda Hamilton
Linda HamiltonOriginal
2024-11-03 21:19:02910browse

Can the Resize Grabber of a Textarea Element be Customized?

Styling the Textarea Resize Grabber

Question:

Can the resize grabber (the small handle at the bottom right corner) of a textarea element be customized?

Answer:

Yes, it can be styled in browsers supporting WebKit.

WebKit provides the ::-webkit-resizer pseudo-element for the resize control it adds to textarea elements. It can be customized using CSS properties like display and -webkit-appearance.

Example:

To hide the resize grabber:

<code class="css">::-webkit-resizer {
  display: none;
}</code>

To give the grabber a custom appearance:

<code class="css">::-webkit-resizer {
  -webkit-appearance: none;
  background-color: red;
  border: 1px solid blue;
}</code>

The above is the detailed content of Can the Resize Grabber of a Textarea Element be Customized?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn