For years, I built applications the same way most front-end developers do: everything in pixels.
Font sizes, spacing, component dimensions, layouts—px everywhere.
Then I started leading the development of enterprise portals used by thousands of internal users across different regions, departments, and hardware setups. That’s when I discovered a problem that modern web development discussions don’t talk about enough:
Most enterprise users are not working on large 4K monitors.
Many are working on 13-inch and 14-inch corporate laptops with limited screen real estate. A portal that looks perfectly fine on a designer’s 27-inch monitor can quickly feel cramped, oversized, and frustrating on smaller screens.
My solution wasn’t more breakpoints.
It was replacing px with rem.
Originally published on Medium.
The Simple Idea
Instead of defining sizes directly in pixels:
.title {
font-size: 24px;
margin-bottom: 16px;
}
I started defining almost everything in rem:
.title {
font-size: 2.4rem;
margin-bottom: 1.6rem;
}
And then controlled the scale of the entire application through the root font size:
html {
font-size: 62.5%; /* 1rem = 10px */
}
This makes sizing calculations incredibly simple:
1.6rem=16px2.4rem=24px4rem=40px
No mental math required.
The Real Superpower
The real benefit appears when supporting different screen sizes.
Instead of writing dozens of component-level media queries, I only adjust the root font size.
html {
font-size: 62.5%; /* 1rem = 10px */
}
@media only screen and (min-width: 1280px) and (max-width: 1440px) {
html {
font-size: 56.25%; /* 1rem = 9px */
}
}
@media only screen and (max-width: 1280px) {
html {
font-size: 50%; /* 1rem = 8px */
}
}
That’s it.
Every font, margin, padding, gap, width, height, card, table, and form element scales proportionally across the application.
Instead of maintaining hundreds of responsive adjustments, the entire portal adapts through a few lines of CSS.
Why This Works So Well for Enterprise Applications
Consumer websites often prioritize mobile responsiveness.
Enterprise applications have a different challenge.
Users spend eight hours a day inside the same portal.
The goal is not just responsiveness—it’s information density.
A procurement dashboard, facility management system, master data portal, or analytics application often needs to display:
- Large tables
- Filters
- Side panels
- Forms
- Navigation menus
- Data visualizations
all on the same screen.
When every element is sized in pixels, smaller laptops frequently suffer from:
- Excessive scrolling
- Truncated content
- Reduced visible data
- Poor workspace utilization
By scaling the root font size, the entire interface becomes more compact while maintaining visual consistency.
The experience feels intentional rather than squeezed.
My Experience
I first adopted this approach while working on enterprise master data management portals.
Initially, the goal was simple: make the application more usable on smaller corporate laptops without creating endless responsive rules.
The results were surprisingly effective.
Instead of designing and maintaining multiple layouts, the entire portal scaled naturally. Tables displayed more rows, forms required less scrolling, and users could see more information without sacrificing readability.
The amount of responsive CSS we had to maintain dropped significantly.
What started as an experiment quickly became my preferred approach for desktop-focused enterprise systems.
The Catch: Third-Party Libraries
Nothing comes for free.
The biggest challenge appears when integrating third-party UI libraries.
If your application uses rem but a component library is heavily based on fixed pixel values, scaling becomes inconsistent.
You may notice issues like:
- Text scales but icons don’t
- Containers resize but internal spacing remains fixed
- Dialogs look oversized or undersized
- Layout alignment becomes inconsistent
The application still works, but the visual harmony starts breaking down.
A Lesson from Our Design System
I ran into this exact problem with my company’s design system.
The design system was delivered as web components and most of its styling was implemented using pixel units.
As our applications adopted a rem-based scaling strategy, some components stopped scaling consistently with the rest of the portal.
Rather than implementing local overrides everywhere, I discussed the issue with the design system maintainers.
The proposal was straightforward:
Provide an alternative stylesheet using rem units.
The maintainers agreed that the approach made sense for enterprise applications, especially those targeting desktop environments with varying screen sizes.
Eventually, support was added and teams could opt into a rem-based stylesheet whenever scaling support was required.
That experience reinforced an important lesson:
A design system becomes significantly more adaptable when it avoids hard-coded pixel assumptions.
Is rem Better Than px?
Not always.
Pixels still make sense for:
- Borders
- Hairline separators
- Certain icons
- Precise graphical elements
But for most application-level styling:
- Typography
- Spacing
- Layout dimensions
- Component sizing
I have found rem to be far more maintainable and scalable.
Final Thoughts
Responsive design is often treated as a problem solved through more media queries.
My experience has been the opposite.
The best responsive strategy I’ve used for enterprise desktop applications was reducing media queries, not adding more.
A rem-based design system allows the entire application to scale through a few root font-size adjustments, making it easier to support the reality of corporate hardware: smaller laptops, limited screen space, and users who spend their entire workday inside your application.
If you’re building enterprise software and your CSS is full of breakpoint-specific overrides, it might be worth asking a simple question:
What if the problem isn’t your layout, but your unit of measurement?
Thanks for reading all the way to the end.
I hope this article gave you a different perspective on building responsive and user-friendly applications, especially for enterprise environments where screen space is often limited.
If you’ve used a similar approach—or have a different take on responsive design—I’d love to hear your thoughts.
Until next time, happy coding.



