[wp-trac] [WordPress Trac] #17570: Admin CSS wrongly fixes the height of select inputs

WordPress Trac wp-trac at lists.automattic.com
Thu May 26 07:38:22 UTC 2011


#17570: Admin CSS wrongly fixes the height of select inputs
----------------------------+-----------------------------
 Reporter:  solarissmoke    |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:  3.2
 Severity:  normal          |   Keywords:
----------------------------+-----------------------------
 In wp-admin.css, we have:

 {{{
 #wpcontent select {
     font-size: 12px;
     height: 2em;
     padding: 2px;
 }
 }}}

 This causes a problem when you try to use a select with the `multiple`
 attribute enabled, because instead of letting the browser use the `size`
 attribute to determine how many rows to show, the CSS shrinks the select
 to just one row (making the others invisible).

 Removing `height: 2em` seems to resolve it for me, an doesn't mess up how
 single-option selects look.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17570>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list