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:
Commenting guidelines:
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).