Link to home
Start Free TrialLog in
Avatar of Joana
Joana

asked on

Firefox Drop Down List

Hello

In firefox the height of the dropdown box is too big.  It has space above before the dropdown arrow starts.  So it sort of looks like a textbox sitting on top of a select box.

ANy ideas of how to fix this?  It makes it look messy.

Thanks

JO


Avatar of Codeit1978
Codeit1978

With CSS you can change the size and width of a drop down box.
I will see if I can find the code for you.
Avatar of Joana

ASKER

I have tried that

width: 12px
height: 12px

dosn't do anything?
Can you post your code you are using?
Avatar of Joana

ASKER

*****  CODE ****
<tr>
      <td class="quicklink"><select id="Apples" class="rightnav">
            <option  value="" selected="selected">&nbsp;</option>
            <option  value="One" selected="selected">One</option>
            <option  value="Two" selected="selected">Two</option>
      </select></td>
</tr>

***** CSS  ******

select.rightnav{
      width: 130px;
      font-size: xx-small;
      display: box;
      color: #666666;
      font-family: Verdana, Helvetica, Arial, Sans-Serif;
}      
ASKER CERTIFIED SOLUTION
Avatar of Codeit1978
Codeit1978

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Joana

ASKER

No sorry it didn't work

Avatar of Joana

ASKER

Ooo got it
The it's parent style had top padding, the other browsers didn't inherit it becasue it was a select, firefox must work different :-)
<HTML>
<HEAD>
<style type="text/css">
<!--
select.rightnav { font-family: verdana; font-size: 5pt; }
-->
</style>
</HEAD>
<body><select id="Apples" class="rightnav">
          <option  value="" selected="selected">&nbsp;</option>
          <option  value="One" selected="selected">One</option>
          <option  value="Two" selected="selected">Two</option>
     </select>
</body>
</HTML>

Here is my code and I tested it in both IE and firefox and it seems to work.
Try doing a control shift-f5 to grab a new copy from the server, or clear your temp internet files and relaunch your browser.
Hey glad to see it's working!