[pmwiki-users] How to selectively remove underlining from links

tamouse pontiki tamouse.lists at gmail.com
Sat Mar 15 01:16:16 CDT 2014


Does this section help at all?
http://www.pmwiki.org/wiki/PmWiki/WikiStyles#WikiStyleApply


On Fri, Mar 14, 2014 at 10:22 PM, Randy Brown <randy at brownragfilms.com> wrote:
> I want to create a link that looks like a button, without underlining the link text.
>
> According to PmWiki:LocalCustomizations I can put "a { text-decoration: none; }" into a local.css file to remove underlining for links, but I assume that would affect all links, not just links in the button.
>
> According to PmWiki:WikiStyles I can set the text-decoration CSS attribute using a wikistyle.
>
> But when I created this:
>
> SDVA($WikiStyle['buttonlink'], array(
>        'background-color' => '#EEEEEE',
>        'color' => '#333333',
>        'text-decoration' => 'none',
>        'border-top' => '1px solid #CCCCCC',
>        'border-right' => '1px solid #333333',
>        'border-bottom' => '1px solid #333333',
>        'border-left' => '1px solid #CCCCCC',
>        'padding' => '2px 6px 2px 6px',
>        'font' => 'bold 11px Arial'
> ));
>
> and used markup such as: [[MyPage|%buttonlink%Button A]] and %buttonlink% [[MyPage|Button B]]
>
> the link text is still underlined.
>
> How would I remove the underlining from the links that use my buttonlink wikistyle, without affecting normal links?
>
> Randy
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users



More information about the pmwiki-users mailing list