Css and underline
4 answers
Since this is the default value (the css user agent has this rule, applies an underscore in each a tag). By default, this is not inherit, so even if the parent tag has an underscore, it will not receive it.
EDIT 1:
For example, firefox has this rule:
*|*:-moz-any-link {
text-decoration:underline;
}
The default value is:
*|*:-moz-any-link {
text-decoration:inherit;
}
Then, in your example, the tag ainherits divtext-decoration.
EDIT 2:
You can overwrite the default behavior with:
a {
text-decoration: inherit;
}
+3