Links Lose Underlining Bug

Chris Hester

7 May 2005 · Last Updated: 14 December 2005

In Opera 8.0, links lose their default underlining style when text-align is applied to them. Solved in Opera 9.0 Preview 1.

Live example:

A link here with no styles applied.

A link here with the text aligned to the left.

Actual Code Used

  1. <p><a href="#notes">A link here with no styles applied.</a></p>
  2.  
  3. <p><a href="#notes" style="text-align:left">A link here with the text aligned to the left.</a></p>

Notes

  1. It doesn't seem to matter if the link is visited or not.
  2. Styling the link using :link instead of a cures the problem.

You can contact me to discuss this bug further, by using the email address "www" then "@" then "designdetector.com".