Border Radius Not Handled Correctly
RogersDA
Registered Users Posts: 3,502 Major grins
I use several browser-specific border settings (-moz-border-radius and -webkit-border-xxx-radius) to create various styled borders on my galleries. The CSS on my site will show all the border settings.
In Internet Explorer the image borders are not changed (curved) - these CSS settings do not work with IE. The -moz-border-radius and -webkit-border-xxx-radius settings affect Firefox, Safari, and Chrome (though there may be others).
In the public galleries on my site; e.g., fauna, the image borders are fine.
On other mostly hidden galleries I noticed that the border curves were present, but the thumbnails looked as though they were "sitting on" the border. Here is an example where they are not quite right.
I started trouble-shooting this and found that, by applying the gallery settings from one of the main site galleries; e.g., the Fauna gallery listed above, to one of the problem galleries, the thumbnails were corrected. So I went setting-by-setting to determine which gallery setting change(s) forced the thumbnails to fix.
It turns out to be Right-Click Protection. If Protection is set to no then the thumbnails are on top of the borders as altered by the -moz and -webkit settings. As soon as I change the Protection to yes to borders/thumbnails are fine. Here is the same gallery with the protection set to yes.
This issue also affect gallery thumbnails and sub-category thumbnails, too. These can't be corrected since you can't turn-on right click protection for sub-category and gallery views.
In Internet Explorer the image borders are not changed (curved) - these CSS settings do not work with IE. The -moz-border-radius and -webkit-border-xxx-radius settings affect Firefox, Safari, and Chrome (though there may be others).
In the public galleries on my site; e.g., fauna, the image borders are fine.
On other mostly hidden galleries I noticed that the border curves were present, but the thumbnails looked as though they were "sitting on" the border. Here is an example where they are not quite right.
I started trouble-shooting this and found that, by applying the gallery settings from one of the main site galleries; e.g., the Fauna gallery listed above, to one of the problem galleries, the thumbnails were corrected. So I went setting-by-setting to determine which gallery setting change(s) forced the thumbnails to fix.
It turns out to be Right-Click Protection. If Protection is set to no then the thumbnails are on top of the borders as altered by the -moz and -webkit settings. As soon as I change the Protection to yes to borders/thumbnails are fine. Here is the same gallery with the protection set to yes.
This issue also affect gallery thumbnails and sub-category thumbnails, too. These can't be corrected since you can't turn-on right click protection for sub-category and gallery views.
0
Comments
You can see some discussion of this issue here. Apparently, it doesn't work when applied directly to the image. It has to be applied to some sort of container that is above the image. I don't know if there's a way to move the radius up to a containing div or whether you'd have to design your own category pages or write a custom script that would create the right structure in the current category pages
Homepage • Popular
JFriend's javascript customizations • Secrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
GreyLeaf PhotoGraphy