textarea's rows, and cols attribute in CSS

css, styling

Solution

`width` and `height` are used when going the css route.

<!DOCTYPE html>
<html>
    <head>
        <title>Setting Width and Height on Textareas</title>
        <style>
            .comments { width: 300px; height: 75px }
        </style>
    </head>
    <body>
        <textarea class="comments"></textarea>
    </body>
</html>

Problem

I'd like to set the `textarea`'s `rows` and `cols` attributes via CSS. How would I do this in CSS?

Original source

Related problems