I've created a custom Fancybox implementation that displays the title on the left-hand side of the image. The problem is that inside any galleries, links inside the title of the image can't be clicked because the fancybox-left link sits above it and blocks the click. You can click the first link in the gallery because the left button does not appear.
I've tried changing z-indexes and all that, but am currently stuck. Any help would be great.
You can find the implementation here.
You can add this css
.fancybox-left {
left:7.5em;
}
this will move left link to the right (it will display on the image)
Related
On a website I'm working on I got images inside a container that need to appear over the text on hover. This works smooth BUT..
Whenever an image appears it stays in the same location as the previous hover. I am trying to make the images only appear over the link it is associated with but it won't work.
I have some JavaScript running to randomize the link colors.
You can find the webpage in action over here:http://bravenewfashion.com/menu.html Its on the tab titled 'Biology meets Fashion'
Thanks for the working example. If you nest the image inside of the a tag, it will automatically position itself next to the link. You can then add some rules for top and left to position them over the link like your website does now.
Working JSFiddle Here
I'm in the making of a navbar that uses html, css and javascript. I recently came up on a problem when I was making the navbar responsive and I need help. Here is a link to codepen: https://codepen.io/Linus_Ekman/pen/WMeJvv where I pasted all my code so that you can see better what I mean and try to help me. So everything works well except that when I click on the "hamburger" icon a dropdown should appear under the navbar that stretches over the whole width of the page with the 4 navigation options in a column. Here is an example of what I want it to do when the "hamburger" icon is clicked: https://codepen.io/Linus_Ekman/full/wywjoB/
Tell me if you need any more information
Edit:
The dropdown now works the way it should as you can see in the first codepen link. But there is another problem. If you hover your mouse under the "hamburger" icon when the dropdown is up you can see that the links are there wich means that the navbar is there but just not shown. How can I get them to go away?
I was looking your example and, if you add some rules to your show class (ul.show), you can make it work:
You need to set background-color: #fff and left: 0 and you'll be good to go.
I forked your pen and you can check the code here https://codepen.io/fermijs/pen/aqoGyG
I have made this website here: http://dijon-egg.com/Possum/
If you click on green big dot button, it takes you to page2. My problem is I can't figure and fix the menu being too big on page 2 or change view of carousel on page 2 so full carousel can show to us.
As I looked at your source code, I guess you should somehow add the .cbp-af-header-shrink class back to the header, when you click the green button.
I'm very new to jQuery so only using the plug ins at the moment. I have downloaded a carousel slider which you manually slide, to view images with text information underneath, then you can click on more (at the bottom of the image/text box) and another box slides to the right with more info etc. I then added text links to this box that slides out to enable the visitor to see the images bigger using the light box plugin.
When I click the text link to open light box (to see the image bigger), the carousel text box that slid out stays in place (over the light box image) so I have to manually click the 'x' in the corner of the carousel box to view the image...
Does anyone have any thoughts on the sort of code I would need to implement into this... would it be adding code to the .js file of the carousel to tell it to close when lightbox is in use????? if so PLEASE what kinda thing would it be?
Try to find the css classes of your lightbox popup and of your carrosel and set the biggest z-index to lightbox div and a not so bigger to the carrosel div. In this way the first will appear over the last one.
I am using this website for making a CSS lightbox.
After I put the button on top of my webpage, the light box is appearing only on the top division (div tag) of the website. I want the light box to appear in the middle of the website. Can anyone help me in resolving the issue? Photos attached before and after. The light box is appearing only on the top not in the center of the webpage.
Before:
==============================================================
After:
I looked at the css in the URL you mentioned. The .white-content and .black-overlay divs shouldn't be inside other divs. Only the link that says "light box here" (or maybe it's a button instead) should be contained in the top div.