Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>Anchor: selective underline CSS</title>
- <style type="text/css">
- .a {
- text-decoration:none;
- font-size: 40px;
- }
- .w {
- }
- .t {
- background: lime;
- }
- .b {
- background: #fcc;
- }
- .w:hover .b {
- text-decoration: underline;
- color: red;
- }
- </style>
- </head>
- <body>
- <a class="a" href="/krUkid">
- <span class="w">
- <span class="t">58</span>
- <span class="b">answers</span>
- </span>
- </a>
- </body>
- </html>
Add Comment
Please, Sign In to add comment