[Pmwiki-users] Link styles

Steffen Glückselig steffen
Tue Sep 28 16:47:59 CDT 2004


Hello,

> Has the ability to affect wikilink styles eluded me or does it exist?   
> Right now, I need a way to change the font size of links within a page.
This could/should be done via CSS. Search your pmwiki-installation for a  
file with the extension 'css'. I think this will be in pub/css/ and be  
called stdlayout.css.
It might also be the css-file in pub/skins/pmwiki/. I am not sure about  
that. If in doubt I'd try the latter one.

Add a line that says
a{font-size:16px}

Change the value to fit your needs.

For changing the link-color add
a{font-size: 16px; color: #c00}
This will make the links turn red.

http://www.w3.org/MarkUp/Guide/Style will give some more info on CSS.


> Also, I would like to see how I can define link styles for
> color, font, size, etc. that can be called as needed or be based on page
> divisions.  For example, I would like to define navigational links  
> differently than page body or define within the text box a link style  
> for all links that follow.

#wikicmds a{color: yellow}
added to the css-file will make the links in the nav at the top right turn  
yellow.


It's all about the elements used in the .tmpl-file (search for 'wikicmds')  
and the CSS that styles these elements.

I think it would be a good idea to have a closer look at some CSS and how  
it relates to elements of the generated HTML.


On this level pmwiki is highly customizable. It is a bit geeky, though.



regards
Steffen



More information about the pmwiki-users mailing list