Empêcher le redimensionnement d’un « textarea »

Par défaut, en HTML, l'élément Textarea peut être rédimensionné à l'infini. Heureusement, en CSS, il est possible d'empêcher cela de la manière suivante :

<textarea class="no-resize" ></textarea>

CSS :

.no-resize { resize: none; }

Permettre uniquement le redimensionnement horizontal :

.horizontal {
    resize: horizontal;
}

Permettre uniquement le redimensionnement vertical :

.vertical {
    resize: vertical;
}

 


25 juillet 2015 - Wakonda - CSS, HTML

Rechercher

Tags

Publicité

Suivez-nous

Aidez-nous !


Loading…
Loading the web debug toolbar…
Attempt #