What would be the CSS equivalent of this: <textarea class="someclass" cols="50" rows="2" onclick="this.focus();this.select()" readonly="readonly"></textarea> TEXTAREA{ ? } Thanks
If you only want "someclass" to be applied to textareas, use textarea .someclass { code } Or if you want all textareas the same, simply apply it to the textarea like you show: textarea { code }
cols="50" : HTML only can't set in css rows="2" : HTML only can't set in css onclick="this.focus();this.select()" : javascript NOT css readonly="readonly" : HTML only can't set in css ...basically, there is no css equivalent, these attributes cannot be influenced by css...css is about styles, these are not style considerations! bg
Right. Possible CSS declarations for TEXTAREA are e.g. width, height, color, font-size, font-family etc.
hmm how about this... textarea.someclass{ width:318px; height:35px; } Code (markup): cant do onclick, or readonly in CSS but im sure you knew that...