Information
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 CSS :
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 CSS
#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 opposite:
Internet Explorer 6
Mozilla 1.5 and Netscape 7
Opera 7.23
Whereas I would have expected all of them to produce something like this
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 ~
FAT CHANCE :)
Copyright
Please ask permission before using or copying this example to your own web site.
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.
Recommended Sites
- Web design in Dorset
Bournmouth based web design agency - Create Free Flash website
Create amazing websites with Wix.com - CSS Menus
A CSSplay develoment - web hosting, dedicated servers
web reseller, managed servers - SEO
First Rate - Australian SEO Company - VPS Hosting
Virtuozzo VPS Hosting - $19.95/mo
"The
web site uses
CSS Play code for the site drop down menus.
This code works seamlessly in IE 6 & 7, and is an excellent solution to the Creative requirements of the site."
Damon Clark - Brandwidth
CSS play pages




