Pm Wiki CSS
Programming.PmWikiCSS History
Hide minor edits - Show changes to markup
(:description Here are a few hacks that involve modifications to the the pmwiki style sheets. :)
In Firefox there is no problem with PNG images and their transparency alpha channel.
On IE though, if your PNG has some transparency (ie. not 100% opaque), then it will look like crap:
In Firefox and IE7 there is no problem with PNG images and their transparency alpha channel.
On IE5.5 and IE6 though, if your PNG has some transparency (ie. not 100% opaque), then it will look like crap:
/* Fix for PNG alpha channel display in IE */
/* Fix for PNG alpha channel display in IE5.5 and IE6 */
- Original work for this fix is from the excellent http://webfx.eae.net/ DHTML site.
- Original work for this fix is from the excellent http://webfx.eae.net/ DHTML site.
(:comments:)
pub/skins/Attach:pngbehavior.htc pub/skins/Attach:blank.gif
pub/skins/pngbehavior.htc pub/skins/blank.gif
The behavior
CSS tag is ignored in non-IE browsers so it will not affect Opera or Moziall based browsers.
The behavior
CSS tag is ignored in non-IE browsers so it will not affect Opera or Mozilla based browsers.
Opening external links in a new window and make them stand out
Opening external links in a new window and making them stand out
The behavior
CSS tag is ignored in non-IE browsers so it will not affect Opera or Moziall based browsers.
behavior: url("pub/skins/pngbehavior.htc");
behavior: url("/pub/skins/pngbehavior.htc");
To solve this problem, download the following files and save them in your skin directory:
pub/skins/pmwiki/Attach:pngbehavior.htc pub/skins/pmwiki/Attach:blank.gif
To solve this problem, download the following files and save them in your top pub/skins
directory:
pub/skins/Attach:pngbehavior.htc pub/skins/Attach:blank.gif
behavior: url("/pub/css/pngbehavior.htc");
behavior: url("pub/skins/pngbehavior.htc");
If you're using mutliple skins for your site, don't forget to copy the blank.gif
and pngbehaviour.htc
files in your skin folders and modify the CSS for each of them!
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 pub/skins
, you will have to modify the path inside pngbehaviour.htc
that points to blank.gif
and change the path in the CSS as well, otherwise it won't work!
Here are a few hacks that involve modifications to the the pmwiki style sheets.
In Firefox there is no problem with PNG images and their transparency alpha channel.
on IE though, if your PNG has some transparency (ie. not 100% opaque), then it will look like crap:
This image as it looks in an image editor showing its checkerboard background through the transparent bits:
actually looks like this in IE:
when it should look like this:
In Firefox there is no problem with PNG images and their transparency alpha channel.
On IE though, if your PNG has some transparency (ie. not 100% opaque), then it will look like crap:
- This image as it looks in an image editor showing its checkerboard background through the transparent bits:
actually looks like this in IE:
when it should look like this:
- Original work for this fix is on the excellent http://webfx.eae.net/ DHTML site.
Reference
- Original work for this fix is from the excellent http://webfx.eae.net/ DHTML site.
Opening external links in a new window and make them stand out
Fixing Internet Explorer PNG transparency problems
To solve this problem, download the following files and save it in your skin directory:
To solve this problem, download the following files and save them in your skin directory:
Then add the following to your pub/skins/pmwiki/pmwiki.css
style sheet :
(:source lang=css:)
/* Fix for PNG alpha channel display in IE */
img {
behavior: url("/pub/css/pngbehavior.htc");
} (:sourcend:)
for instance as pub/skins/pmwiki/pngbehavior.htc
- Original work for this fix is on the excellent http://webfx.eae.net/ DHTML site.
Opening external links in a new window and make them stand out
- Opening external links in a new window and make them stand out
- Fixing Internet Explorer PNG transparency problems
!!!Opening external links in a new window and make them stand out
Fixing Internet Explorer PNG transparency problems
!!!Fixing Internet Explorer PNG transparency problems
This image as it looks in an image editor showing its checkerboard background through the transparent bits
actually looks like this in IE
when it should look like this
This image as it looks in an image editor showing its checkerboard background through the transparent bits:
actually looks like this in IE:
when it should look like this:
[=
=]
This completements the cookbook recipe found on the pmwiki site |ExternalLinks
This completements the cookbook recipe found on the pmwiki site ExternalLinks
To enable this, you only need to download one of the small images ( - ), place it in your skin directories, for instance pub/skins/pmwiki/external.png
and add in the pub/skins/pmwiki/pmwiki.css
the following:
To enable this, you only need to download one of the small images below, place it in your skin directories, for instance pub/skins/pmwiki/external.png
and add in the pub/skins/pmwiki/pmwiki.css
the following:
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 problems
In Firefox there is no problem with PNG images and their transparency alpha channel.
on IE though, if your PNG has some transparency (ie. not 100% opaque), then it will look like crap:
This image as it looks in an image editor showing its checkerboard background through the transparent bits
actually looks like this in IE
when it should look like this
To solve this problem, download the following files and save it in your skin directory:
pub/skins/pmwiki/Attach:pngbehavior.htc pub/skins/pmwiki/[[Attach:blank.gif]]
If you're using mutliple skins for your site, don't forget to copy the blank.gif
and pngbehaviour.htc
files in your skin folders and modify the CSS for each of them!
for instance as pub/skins/pmwiki/pngbehavior.htc
Opening external links in a new window and make them stand out
This completements the cookbook recipe found on the pmwiki site |ExternalLinks
To open external links in new windows, add the following in your local/config.php
file:
(:source lang=php:)
- Modified URL for external links to open them in a new window
- and mark them with a small image on the right (throught CSS)
"<a class='external' target='_blank' href='\$LinkUrl'>\$LinkText</a>";
(:sourcend:)
On this site, I have used the same effect used in WikiPedia for their external links. (:if skin pmwiki:)However, you will need to chose another skin than Basic Text to see what the external links look like.
Choose another skin from the menu on the left panel.(:if:)(:if ! skin pmwiki:)
For instance http://www.slashdot.org , notice the small picture on the right of the link that indicate that this is an external link to this site.(:if:)
To enable this, you only need to download one of the small images ( - ), place it in your skin directories, for instance pub/skins/pmwiki/external.png
and add in the pub/skins/pmwiki/pmwiki.css
the following:
(:source lang=css:)
- wikibody a.external {
background: url(external.png) center right no-repeat; padding-right: 13px;
} (:sourcend:) Now all external links in you main text body will be identified as such.