Macworld UK

Help Desk

HOW TO OVERRIDE THE FONT SETTINGS IN SAFARI FOR ALL PAGES

Sometimes web page designers make interesting choices. Why not use tiny, fancy type on a shaded background to make reading a page more…legible? Apple’s built-in Reader View in Safari across all its platforms lets you make short work of hard-to-read type. But you lose most of the formatting, some of the images, and other elements of the page.

Safari for macOS has another trick up its sleeve: custom CSS. Where HTML defines the structure and content of a web page, CSS (Cascading Style Sheets) is the coding that underlies the appearance and formatting, from type sizes to columns and floating boxes. In Safari > Preferences > Advanced, you can select a custom style sheet from the Style Sheet pop-up menu.

You don’t need to know much CSS to have an impact. For example, suppose you like Arial above all other typefaces. A CSS file that contains this single line will change the typeface on all pages to Arial:

Decoded, that says: ‘For an HTML page’s body section, the container for all the stuff you see on a page, set flag says, ‘I don’t care what any other style sheet says – use my parameter.’

You’re reading a preview, subscribe to read more.

More from Macworld UK

Macworld UK5 min read
9 Ways Apple Can Improve Apple Vision Right Now
Apple Vision Pro is clearly a first-gen product. Expensive, flawed, limited and impressive. Much of what it needs to really become a mass-market device will need new hardware that is lighter, more affordable, and more fully featured. But that’s not t
Macworld UK3 min read
The Best Feature You Don’t Know You’re Using: Optimized Battery Charging
As you probably know, a battery’s charge capacity diminishes over time. If you’ve recently got an M-series MacBook, you spent a good amount of money on that laptop, so you want the battery to be viable as long as possible. Fortunately, macOS has buil
Macworld UK1 min read
Apple Releases MacOS 14.4.1 With Several Important Bug Fixes
After launching iOS 17.4.1 last month, Apple has released a small update in macOS 14.4.1 that contains numerous bug fixes that have plagued Mac users during the month of March. Apple’s release notes state that the following bugs have been addressed i

Related