Change Link decoration on some links
David Buchanan says:
Hello Matt,
I just want to check to see if I did this correctly. I wanted to make it so I can choose to have some links (but not all links) appear w/o the underline. It works but I want to be sure that its correct.
This is the original Yorktown Green CSS code:
#col3_content a, #adminMainCell a { text-decoration:underline; }
This is what I changed it to:
#col3_content a, #adminMainCell a { text-decoration:underline; }
#col3_content a.noline, #adminMainCell a.noline { text-decoration:none; }
.tooltext a { text-decoration:none !important; }
and then in my html on the specific pages I put <a class="noline" href...>
Is it OK? Or did I hack it?
Thanks
Posted at 6:54 AM on December 13, 2009
If it works, you've done it right!
One change that might make things easier... if you add a class to the very bottom of your style sheet like this:
a.nounderline { text-decoration: none; }
It will show up in the Class dropdown of the Insert/Edit Link dialog, so you don't have to fuss with HTML.
Cheers,
MW
Posted at 9:23 AM on December 14, 2009