When using the following CSS I am able to dynamically control the size of the Air Date/Time Picker Pro element according to browser size. However, the “font-size” property has no effect. Any suggestions on how the font size can be controlled via CSS?
Thanks for sharing the details and the CSS snippet - that helps a lot.
Short answer: your CSS is working correctly, but the font-size isn’t applied because the Air Date/Time Picker Pro renders the visible text inside an internal input element, not on the root .date-time-picker wrapper itself. So changing font-size on the container won’t affect the actual text.
Why this happens
The plugin uses its own internal structure (wrapper → input field → value). The size of the element responds to your CSS, but the text is controlled by the inner input, which has its own font styles.
What to try instead
You’ll need to target the input inside the picker, for example:
Use the browser inspector to confirm the exact selector (input, .flatpickr-input, etc.), as Bubble may wrap the element slightly differently depending on layout.
This approach is expected behavior and not a bug — the plugin intentionally styles the input separately for consistency.
Your clamp() logic is perfectly fine and will work once applied to the correct element.
If you run into a case where the selector differs in your setup, feel free to share a quick screenshot of the inspected DOM, and we’ll point you to the exact class to target.
Thanks a lot for the update - really appreciate you taking the time to share the final solution.
Great to hear that this approach worked well and that you were able to achieve the dynamic sizing you were aiming for.
Your breakdown and comments are spot on and may also be useful for other users with similar requirements, so thanks for sharing them with us.
At this point, could you please double-check everything on your end across the target screen sizes and confirm that there are no remaining concerns or edge cases?
If anything else comes up, feel free to share your vision with us - we’ll be happy to review it.
Thanks again, and we’re always here if you need anything.