Hover Image Border

brett
14 Posts
brett posted this 10 November 2015

Hi,
I've had a few issues getting a gallery to work how I intend it to.
I want an 0.6 opacity on the thumbnails and when I hover over it 1.0 opacity
when I click it should open a light box

So ... I manged to get a 0.6 opacity by clicking on the image on the post and selecting the image icon and selecting 0.6 opacity. That works great.

But when I hover over the image I don't know how to edit the css.
Do I have to add the additional css to the css tab...
If so that's also a bit confusing, I would assume something on the lines of

.ngg-gallery-thumbnail:hover {
opacity: 1.0;
border-color: rgba(0, 0, 255, 0);;
}

Oh yes theres also this grey border that appears when I hover over the image.

Then the lightbox, I removed the following code from the css tab because I kept getting 2 light box, ie one ontop of the other.

------------------------------------previous code for reference -----------------------------------------------------------
.gallery-item .overlay
{
background-color: rgba(211, 69, 84, 0.35);
background-image: url("/wp-content/uploads/2014/12/zoom.png");
width:100%;
background-position: center 40%;
background-repeat: no-repeat;
bottom: 0;
display: block;
left: 0;
opacity: 0;
position: absolute;
right: 0;
top: 0;
transition: opacity 0.25s ease-in-out 0s;
}
.gallery-item:hover .overlay
{
opacity: 1;
}
.gallery-item .overlay-meta
{
bottom: 20px;
left: 20px;
position: absolute;
}
.gallery-item .overlay-meta h3
{
color: #fff;
font-size: 1.4em;
font-weight: normal;
margin-bottom: 0;
}
.gallery-item .overlay-meta .caption
{
color: #fff;
font-size: 1.6em;
font-style: italic;
line-height: 28px;
}
------------------------------------ end previous code for reference -----------------------------------------------------------

So now I'm just getting one lightbox but it is really close to the bottom of the page.
Also I can't see my footer,
I assume not being able to see the footer is related

Thanks for your help !!!

Hi, I've had a few issues getting a gallery to work how I intend it to. I want an 0.6 opacity on the thumbnails and when I hover over it 1.0 opacity when I click it should open a light box So ... I manged to get a 0.6 opacity by clicking on the image on the post and selecting the image icon and selecting 0.6 opacity. That works great. But when I hover over the image I don't know how to edit the css. Do I have to add the additional css to the css tab... If so that's also a bit confusing, I would assume something on the lines of .ngg-gallery-thumbnail:hover { opacity: 1.0; border-color: rgba(0, 0, 255, 0);; } Oh yes theres also this grey border that appears when I hover over the image. Then the lightbox, I removed the following code from the css tab because I kept getting 2 light box, ie one ontop of the other. ------------------------------------previous code for reference ----------------------------------------------------------- .gallery-item .overlay { background-color: rgba(211, 69, 84, 0.35); background-image: url("/wp-content/uploads/2014/12/zoom.png"); width:100%; background-position: center 40%; background-repeat: no-repeat; bottom: 0; display: block; left: 0; opacity: 0; position: absolute; right: 0; top: 0; transition: opacity 0.25s ease-in-out 0s; } .gallery-item:hover .overlay { opacity: 1; } .gallery-item .overlay-meta { bottom: 20px; left: 20px; position: absolute; } .gallery-item .overlay-meta h3 { color: #fff; font-size: 1.4em; font-weight: normal; margin-bottom: 0; } .gallery-item .overlay-meta .caption { color: #fff; font-size: 1.6em; font-style: italic; line-height: 28px; } ------------------------------------ end previous code for reference ----------------------------------------------------------- So now I'm just getting one lightbox but it is really close to the bottom of the page. Also I can't see my footer, I assume not being able to see the footer is related Thanks for your help !!!
Vote to pay developers attention to this features or issue.
3 Comments
Order By: Standard | Newest
brett
14 Posts
brett posted this 11 November 2015

I've made some progress but I'm still having issues with light box

The gallery I have has a light box, I managed to disable the lightbox on Themler on the Home page by removing the additional css in the css box but I can't remove it on my page-template.

How do I disable lightbox on my page template.

Thanx!!!

I've made some progress but I'm still having issues with light box The gallery I have has a light box, I managed to disable the lightbox on Themler on the Home page by removing the additional css in the css box but I can't remove it on my page-template. How do I disable lightbox on my page template. Thanx!!!
brett
14 Posts
brett posted this 11 November 2015

Ok, I found it

https://answers.themler.com/articles/5910/disable-lightbox-for-particular-images

This post can be closed

Ok, I found it https://answers.themler.com/articles/5910/disable-lightbox-for-particular-images This post can be closed
Support Team
Support Team posted this 11 November 2015

Sorry for the delay and you are welcome.
Feel free to contact us in any other occasion.

Sincerely,
Hella

Sorry for the delay and you are welcome. Feel free to contact us in any other occasion. Sincerely, Hella
You must log in or register to leave comments