Closed
Bug 998144
Opened 10 years ago
Closed 10 years ago
Setting the height of a <select> doesn't vertically center the text of the selected <option>
Categories
(Core :: Layout: Form Controls, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 610733
People
(Reporter: jost.frederic, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 6.0; rv:28.0) Gecko/20100101 Firefox/28.0 (Beta/Release) Build ID: 20140314220517 Steps to reproduce: <select name="civility" id="civility"> <option value="man">M.</option> <option value="woman">Mme</option> </select> css : select{ width: 64%; height: 3em; } Actual results: Le problème est que M. apparait bien, mais quand je donne un height à la balise select, le M. se retrouve en haut de la zone du select, donc il n'est pas centré, alors que sur google chrome il est centré. Et si j'applique un padding-top, j'arrive à descendre le M. mais la flèche de la zone descend et ce n'est pas jolie :( Expected results: J'aimerai que le résultat soit comme sous google chrome.
Comment 1•10 years ago
|
||
In Google Chrome, I just see height: whatever; not having any effect at all. Is that actually what you're asking for?
Flags: needinfo?(jost.frederic)
Updated•10 years ago
|
Component: Untriaged → CSS Parsing and Computation
Product: Firefox → Core
Summary: problème de css sur balises input html5 → Setting the height of a <select> doesn't vertically center the text of the selected <option>
Comment 2•10 years ago
|
||
Fixed in current nightlies.
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
Updated•10 years ago
|
Component: CSS Parsing and Computation → Layout: Form Controls
Updated•9 years ago
|
Flags: needinfo?(jost.frederic)
You need to log in
before you can comment on or make changes to this bug.
Description
•