[Pmwiki-users] WikiStyle for links colors?

Patrick R. Michaud pmichaud at sci.tamucc.edu
Fri Mar 7 01:38:39 CST 2003


On Fri, 7 Mar 2003, Glenn Blalock wrote:

> I know this may sound greedy, especially with all the very useful
> enhancements in 0.4, but is it possible to control the color of links?  

Depends on what you mean by "control the color".  In pmwiki-0.4 the
text of links now honors the WikiStyles color settings, thus

  %green% See my pop-tarts at http://www.pmichaud.com/toast

now has the link text displayed in green (pmwiki-0.3.x would display it
in the browser/page's default link color, usually blue for unvisited
links and purple for visited links).

However, if you're wanting to control the link, visited, active, and
hover "pseudo-classes" for link text, well, there's not going to be
an easy way for me to make this work with just WikiStyles alone.  It
will also require some configuration from the WikiAdministrator to set
up CSS style-sheet entries in the <HEAD> section of the HTML output.
HTML only allows link attributes to be specified in a CSS style
sheet specification, and not as inline attributes to the <a href...>
tag itself.

So, what sort of colored links are you looking for?  If just setting
the color of the link text itself, that's available in 0.4.0.  If you 
want to be able to have the link show up as different colors for visited, 
active, and hover links, then I'll bump up the priority for setting up CSS class
attributes in WikiStyles to accommodate this.

I'm hoping that pmwiki-users can have a discussion about things that need
to be included/standardized in WikiStyles; i.e., what predefined styles
would be good to make available in PmWiki distributions, and what additional
stylesheet attributes should PmWiki be supporting?

Pm





More information about the pmwiki-users mailing list