Rounded Corners - 3:1 Aspect Ratio Photos
Darter02
Registered Users Posts: 947 Major grins
Currently I'm using CSS to round the corners of photos on my site. When I create a page, and place images on them I usually have Action on Click set to Open Lightbox.
On a page I was creating today I wanted three decorative 3:1 aspect ratio images to do nothing on click.
When I do this, the CSS I use stops working. It will only work if a photo is set to either open the lightbox or gallery.
The code I use is:
Any thoughts on why it does this?
On a page I was creating today I wanted three decorative 3:1 aspect ratio images to do nothing on click.
When I do this, the CSS I use stops working. It will only work if a photo is set to either open the lightbox or gallery.
The code I use is:
*rounded corners*/ .sm-page-widget-galleries .sm-tile a { border-radius: 10px; } /* ROUND THE EDGES ON GALLERY THUMBNAILS in Collage Galleries */ .sm-gallery-roworganic img, .sm-gallery-columnorganic img { border-radius: 10px; } .sm-page-widget-folders .sm-tile a, .sm-page-widget-galleries .sm-tile a, .sm-page-widget-nodes .sm-tile a, .sm-page-widget-pages .sm-tile a { border-radius: 10px; } /*round corners to feed*/ .sm-feed .sm-feed-item-description a img { border-radius: 10px; } /* ROUND IMAGES DISPLAYED IN THE LIGHTBOX */ .sm-lightbox-image { border-radius:25px; }
Any thoughts on why it does this?
0
Comments
I enabled right clicking for the middle, top image of the hemlock trees if any kind soul wants to help me figure it out...
Here's the page, it's the only photo on it.