Cross-browser solution for adding hover border to linked images
// The class is assigned to the href.
.borderit img { border: 1px dashed #776e09; padding: 2px; } .borderit:hover img { border: 1px solid #fff71c; padding: 2px; } .borderit:hover { color: red; /* irrelevant definition to overcome IE bug */ }