Doing it with Style
You would have thought that all browsers would be the same when it comes to 'border colors' wouldn't you?
If you specify the following:
border-top:1px solid #f00;
border-right:1px solid #0f0;
border-bottom:1px solid #00f;
border-left:1px solid #000;
Then all browsers would look the same.
But not a bit of it. They would all be different.
Let me explain. When does the top border stop being the top and become the right border and similarly the right border become the bottom border and the bottom border become the left border and so on?
Well the answer is it depends which browser you are using.
Just to demonstrate, if I set up a div with the following:
#bord {
display:block;
width:1px;
height:1px;
background:#fff;
border-top:1px solid #f00;
border-right:1px solid #0f0;
border-bottom:1px solid #00f;
border-left:1px solid #000;
overflow:hidden;
}
and I magnifiy the result, I would get the results below:
So there you have it, browsers cannot even agree on how to deal with basic 'border colors', and I had hoped to use this method to produce images based on a grid of four pixels (2x2) using the above css but with a height and width of 0px
I had hoped that this would produce a grid like this ...
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.
Most of my demonstrations can be used without asking for permission. However, some will require email approval first. Just check each page for the copyright requirements before use.
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.