Overview
Upcart’s sticky cart button can be resized and repositioned with custom CSS. This allows you to better match your store’s branding or user experience preferences across desktop and mobile devices. There are two approaches available depending on how much control you want.Option 1: Scaled resizing (simple setup)
This method uses a single scale factor to shrink or enlarge the button and icon proportionally. It’s the easiest way to adjust button size with minimal code.Where to add this
Go to Upcart > Sticky Cart > Custom CSS, and paste the code below.How to customize
- Change
transformto resize the button (e.g.0.8,0.6,1.25etc.)
Option 2: Pixel-specific resizing (advanced control)
This method allows you to control each element’s dimensions individually usingpx values. Use it when you want precise adjustments that don’t rely on scale.
How to customize
- Adjust the variables in
:rootto increase or decrease each element’s size - Tweak the
leftandtopvalues inside the selectors to visually center the icon and badge

