Mobile Friendly Website

CSSPLAY

Doing it with style

CSS DEMOSTransparent borders for IE5.5 and IE6

Date : 13th June 2007

For all modern browsers


This demo is too wide for your mobile screen.
Please view on a tablet or PC.

A five point star with transparent outer
A five point star with transparent inner


Information

I have been attempting to do this on and off for the past year or more, but failed to make it work in IE5.5 and IE6.

Shapes such as triangle, boxes, pentagons, hexagons, octogons have all been done to death, but the five point star was only possible in browsers that understood transparent borders and that meant that IE5.5 and IE6 could never produce this result.

But thanks to a chance email from Jeff Corley there is an answer.

The above demonstration works in all browsers including IE5.5, IE6, IE7, Firefox, Opera, Netscape, Mozilla and Safari (PC version).

The trick is to use 'dashed' transparent borders instead of 'solid'. IE5.5 and IE6 render these using the color of the font being used BUT as dashed borders start with a transparent gap the dashed color is never displayed and the borders are 'transparent'. This works for border art, but would not be of any use for normal border transparency.

So there you have it, border art transparency in IE5.5 and IE6 ...sorted :)


Because of all the time and effort spent in producing this demonstration I would ask that you respect my copyright.

  1. If you are using this on a personal web site then please retain the copyright comment in the stylesheet.
    A support donation is now required for this demonstration.
  2. If you are using this on a commercial web site, or as a paying job for a client, then please email me asking for permission - stu{at}cssplay.co.uk and again a support donation is required.
  3. If you are having problems integrating any of my demonstrations into your website then I now offer a service to fault find and correct any errors that you may have introduced. Please email me for more information.

Support CSSPLAY

Your donations keep CSS PLAY running.
If your donation is for the use of a demo then please email me with the demo url after making your donation.


For more CSS demonstrations
I recommend that you visit the Dynamic Drive CSS Library.


Free, practical CSS menus, layouts, and examples


CUSTOM SEARCH

Facebook Twitter rss feed Facebook Fan Page