Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Has anyone of you experienced a yellow border wrapped around colorbox items (can be pictures or links) after exit from colorbox mode? It is happening only in chrome and I couldn't find any info on this.
Please try to open any of the small images on the left using chrome browser
http://www.vypadavanie.net/sampon-proti-vypadavaniu-vlasov-revita
Any help would be appreciated.
Comments
Comment #1
frjo CreditAttribution: frjo commentedSee http://drupal.org/node/1186346
Comment #2
njwood60 CreditAttribution: njwood60 commentedIt is not caused by colorbox but by the fact that Chrome "outlines" the element that has the focus.
see this link for an explanation
http://stackoverflow.com/questions/3875195/google-chrome-textboxes-yellow-border-when-active
You can avoid it in the colorbox css by adding:
#colorbox{outline:0;}
and
/* avoid outlines on :active (mouseclick), but preserve outlines on :focus (tabbed navigating) */
#cboxPrevious:active, #cboxNext:active, #cboxSlideshow:active, #cboxClose:active {outline:0;}
which is in the current CSS for the colorbox website
Comment #3
loparr CreditAttribution: loparr commentedThank you
Comment #4
johnnymowmow CreditAttribution: johnnymowmow commentedFor others looking for an answer - If the CSS provided by njwood60 does not work for you - try changing #colorbox{outline:0;} to .colorbox{outline:0;}. My installation of colorbox made "colorbox" as a class - not an id.