PmWikiCSS![]() Here are a few hacks that involve modifications to the the pmwiki style sheets.
Opening external links in a new window and making them stand outThis completements the cookbook recipe found on the pmwiki site ExternalLinks To open external links in new windows, add the following in your # Modified URL for external links to open them in a new window # and mark them with a small image on the right (throught CSS) $UrlLinkFmt = "<a class='external' target='_blank' href='\$LinkUrl'>\$LinkText</a>"; On this site, I have used the same effect used in WikiPedia for their external links. However, you will need to chose another skin than Basic Text to see what the external links look like. To enable this, you only need to download one of the small images below, place it in your skin directories, for instance #wikibody a.external { background: url(external.png) center right no-repeat; padding-right: 13px; } Now all external links in you main text body will be identified as such. Right-click and choose save image to download a copy of the images on your PC: - - - - ![]() If you're using mutliple skins for your site, don't forget to copy the image in your skin folders and modify the CSS for each of them! Fixing Internet Explorer PNG transparency problemsIn Firefox and IE7 there is no problem with PNG images and their transparency alpha channel.
To solve this problem, download the following files and save them in your top pub/skins/pngbehavior.htc pub/skins/blank.gif Then add the following to your /* Fix for PNG alpha channel display in IE5.5 and IE6 */ img { behavior: url("/pub/skins/pngbehavior.htc"); } The If you're using mutliple skins for your site, don't forget to modify the CSS for each of them! If you're not saving those new files in Reference
Leave your comments below |