Links lose underlining with text-align applied

In Opera 8.0, links lose their default underlining style when text-align is applied to them.

Test page Workaround is included
Reported by: Chris Hester.

Opera | Reported on 16 May 2005.

This site heavily relies on bug reports created by its readers. Anyone can report a bug and be published.




Search reports by browser:

Atom RSS

Comments

(Add your own)

1 Posted by Krijn Hoetmer on 17 May 2005 | Permalink

This is perhaps because text-align only applies to block-level elements, table cells and inline blocks (http://www.w3.org/TR/CSS21/text.html#propdef-text-align) and the fact that Opera (7 as well) removes the default underlining for anchors displayed as one of those 3 values. a { display: block|inline-block|table-cell; } does the same.

The element is converted to inline-block internally?

This can also be solved by specifying both text-decoration: underline; and text-align on the anchor (although the text-align still hasn't got any effect then).

Post a comment

Commenting guidelines:

  1. When quoting specs, articles or your own research, please include a URL of the document.
  2. Test your stuff. When reporting browser behaviour, make sure that your report is correct.

Yes