html - Does using pixels for the root font size discard user preferences? -


i want use rem font-size, user can have scalable font-size paragraphs through browser settings. chose fontsize=10px root, easy coversion of photoshop font-sizes. using pixels root font size discard user preferences? have set root element in percentage oder in pixels?

html {   font-size: font-size: 10px;; }  p {   font-size: 1.2rem; /* 12px } 

does using pixels root font size discard user preferences?

yes, discards base font size preference specifically. font size still affected browser zoom, separate thing entirely.

browsers ship default preferred font size of 16px. if want base font size 10px, still allow scaling based on user's preferred font size, can set root font size 62.5%.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -