admin/style.css textarea styles causes textarea to be non resizable
-
By setting the height with an inline style on the textarea of the meta form for the message format, you disable the ability to resize the textbox
<textarea id="xyz_smap_message" name="xyz_smap_message" style="height:80px !important;" ><?php echo esc_textarea(get_option('xyz_smap_message'));?></textarea>
should be
<textarea id="xyz_smap_message" name="xyz_smap_message"><?php echo esc_textarea(get_option('xyz_smap_message'));?></textarea>
and in
admin/style.css
your styling for the textarea should change from.xyz_smap_meta_acclist_table select ,.xyz_smap_meta_acclist_table textarea{ width: 200px;padding: 5px !important;height: 2.35em !important; }
to something more like
.xyz_smap_meta_acclist_table select { width: 200px; padding: 5px !important; height: 2.35em !important; } .xyz_smap_meta_acclist_table textarea { min-width: 200px; padding: 5px!important; min-height: 2.35em; }
Also, all the use of inline styles and so many
!important
s is not a good practice for maintainability or debugging.
- The topic ‘admin/style.css textarea styles causes textarea to be non resizable’ is closed to new replies.