The MU forums have moved to WordPress.org

SELECT MULTIPLE and admin-header.php (3 posts)

  1. SteveAtty
    Member
    Posted 15 years ago #

    I'm working on some code and it uses a SELECT MUTLIPLE statement.

    This works fine until I include the line

    include_once('admin-header.php');

    in my script. The minute I do that the the select multiple collapses onto a single line.

    So before I spend ages trying to work out what is going on... has anyone else come across this problem.

    Here is the code (stripped down)

    <?php
    require_once('admin.php');
    include_once('admin-header.php');
    
    ?>
    
    <SELECT NAME="toppings" MULTIPLE SIZE=5>
    <OPTION VALUE="mushrooms">mushrooms
    <OPTION VALUE="greenpeppers">green peppers
    <OPTION VALUE="onions">onions
    <OPTION VALUE="tomatoes">tomatoes
    <OPTION VALUE="olives">olives
    </SELECT>
    
    <?php
    
    include('admin-footer.php');
    ?>
  2. SteveAtty
    Member
    Posted 15 years ago #

    I've found the problem

    It is in wp-admin.css in the #wpcontent select

    #wpcontent select {
    	font: 12px/20px "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif;
    	padding: 2px;
    
    	border-width: 1px;
    	border-style: solid;
    	height: 2em;
    	vertical-align:top;
    }

    Its the height tag.

    Is there a specific reason why this is in there?

  3. lunabyte
    Member
    Posted 15 years ago #

    Dunno. Sounds like a WP core issue though.

About this Topic

  • Started 15 years ago by SteveAtty
  • Latest reply from lunabyte