Although I haven't come across any specific data regarding users who change their base font size, my research led me to websites created by experienced designers. I focused on whether they used px
or em
for their media queries. While this may not fully answer the question, it adds an intriguing aspect to the conversation.
Notable Figures
This is not an exhaustive list, but rather a compilation of individuals and groups who have had a significant impact on web development and responsive design practices.
- Filament Group: em
- Luke Wroblewski: em
- Jeffrey Zeldman: px
- Chris Coyier: em
- Ethan Marcotte (aka The Father of Responsive Web Design): px
- Jason Santa Maria: px
- Mark Boulton: px
- Nicholas Gallagher: px
An interesting observation is that Nicholas Gallagher, known for adding the media query line to the HTML5 Boilerplate CSS, uses em
in that code, but opts for px
on his personal website. Unfortunately, I couldn't find any discussions related to that commit.
Showcase Sites
While the following list may seem random, these sites are worth exploring as they have been developed either partially or entirely by individuals from the aforementioned list.
A notable detail about HTML5 Boilerplate is that its main project's CSS utilizes em
, whereas the mobile version adopts px
.
Leading Websites
Interestingly, few of the most popular websites globally incorporate media queries. Here are some exceptions:
Final Thoughts
Overall, the debate remains inconclusive.
It appears that both methods yield successful results, with no clear consensus on best practices.
There seems to be a shift towards em
among forward-thinking designers, although concrete data is lacking. It's possible that some of the mentioned sites are older and haven't been updated to embrace em-based media queries. Obtaining sufficient data to make a definitive conclusion is challenging.
Nevertheless, the fact that major websites still utilize px
suggests that this approach remains technically viable. If there were significant issues, larger sites would likely have addressed them based on user feedback and testing to better serve their audience.