Kevin Basil (signature)

Surfing Safari

Next article: An API Interface for Bible Gateway
Previous article: Spam spam spam spam

Written by Basil on 01/9/2003 1:11 AM. Filed under:


Share    
Share with your friends and followers:
Share

The new Apple web browser Safari wins high praise for speed, standards compliance, and usability. Unfortunately, a preference to disable link underlining is not exposed in the user interface. If you have refined typographical sensibilities, this might seem to be a deal breaker. But, because it is a CSS-compliant browser, there is a way to do it. CSS is a web standard that allows web developers and designers to write code that works in any browser. One of the core requirements of the CSS specification is that a compliant web browser must allow you to specify a “user-defined” stylesheet.

Here’s how you do it:

  1. If you do not already have a stylesheet, create one. I called mine “user.css” and put it in /Users/basil/Library/Safari/, but you can call it anything and put it anywhere.
  2. Put this text in that file:
    a:link, a:hover, a:visited, a:active { text-decoration:none }
  3. In your Safari menu, select Preferences and choose the Appearance panel. At the bottom, select Other for Style Sheet. You will get a file picker that will let you select the file you created.

Voila! Just like unchecking “Underline Links” in a browser that isn’t in beta. The code above will still allow a web author to override your preference (like blogs4God does). If you really want to exercise complete control, then add !important to the code above, before the closing brace (the } character).

Share with your friends and followers:
Share


Share   

The URL to trackback this post is:
http://kevinbasil.com/2003/01/09/surfing-safari/trackback/

One Response to “Surfing Safari”

  1. gelatinous cube Says:

    So that’s how you do that!
    Today I learned how to disable underlining of links in Safari….