Custom CSS: Difference between revisions

Jump to navigation Jump to search
Andrian (talk | contribs)
Andrian (talk | contribs)
Line 147: Line 147:




Example 1: Limit the optional quantity selector for your 2nd upsell item to 4:
Example 1: Set the range of the optional quantity selector for your 2nd upsell item to 0-4:


#optextra2 option:nth-child(n+6) {display:none;}
#optextra2 option:nth-child(n+6) {display:none;}




Example 2: Limit the optional quantity selector for your 5th upsell item to 20:
Example 1: Set the range of the optional quantity selector for your 5th upsell item to 0-20:


#optextra5 option:nth-child(n+22) {display:none;}
#optextra5 option:nth-child(n+22) {display:none;}