Closed Bug 430030 Opened 17 years ago Closed 17 years ago

CSS: Cannot remove underline from elements within <a> tags

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 339669

People

(Reporter: spam.spammy, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14 Cannot remove underline from elements inside <a> elements via CSS (see steps to reproduce) unless you do it globally on all 'a' elements. This is a separate issue to Bug 361770, though it may be related (I don't know). Reproducible: Always Steps to Reproduce: 1) Create a html file with this content: -----START----- <html> <head> <style type="text/css"> a p { text-decoration: none; } </style> </head> <body> <a href="#"><p>I am still underlined. Ohnoes.</p></a> </body> </html> -----END----- 2) load into firefox 3) say "ohnoes". Actual Results: text was still underlined. Expected Results: text should not have been underlined.
I believe this is invalid. See bug 1777 for background.
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
I understand and agree. FWIW, MSIE7 removed the underline.
You need to log in before you can comment on or make changes to this bug.