Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

pxDropdown left padding is available in IE but not in Firefox

SA-21572

Summary



Drop-down options do not have left padding in Firefox that are present in Internet Explorer. Refer the figure given below for an example.

IE


Firefox


Error Messages



Not Applicable

Steps to Reproduce



Compare drop-down options in Internet Explorer and Firefox.

Root Cause



This is not a Pega defect, but rather browser inconsistencies with standard markup.

Mozilla development community has published articles describing this inconsistent behavior especially with <SELECT> and <OPTION> elements, which is the standard HTML Pega generates for pxDropdowns.

Refer the Mozilla documents given below.

Advanced_styling_for_HTML_forms
Property_compatibility_table_for_form_widgets#Select_boxes_(single_line)

Resolution



Set the <OPTION> padding in CSS explicitly if required.

Example:
option
{
  /* Tune this to your needs (match your select padding) */
  padding-left: 20px;
}
Suggest Edit

Published April 1, 2016 - Updated October 8, 2020

Did you find this content helpful? Yes No

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us