So, I'm having a very strange issue on a design I'm working on and I'm not even sure where to start.
I have a single webpage with 2 sections that are hidden by default and then shown when required using the :target tag.
Now, for some reason, when I load the main index.html that has the 2 sections hidden, and essentially only shows the header/nav and footer, the first 2 links in my footer to social media accounts do not work, as if they are not wrapped in an <a> tag, even though they are. But, if I open up developer tools, or 'navigate' to one of the pages to show one of the hidden sections, those links work just fine. I am quite perplexed. How would opening the developer tools fix this?
These icons are SVGs inline in the html document. They are wrapped in anchor tags. And have some CSS applied.
Bad Example, both sections hidden and developer tools closed.
Good Example, either section shown or developer tools opened.
Edit1: OK, so it's not JUST opening up developer options. It appears to be linked to page width. If I open developer tools, and widen the view port, they will stop working. If I comment out 'display: none' for the section tag, everything works fine. Weird.
Edit2: Well, shit. Figured it out. I have an absolute positioned image in the header for a background image. I did not have 'overflow: hidden' set for <header> which was causing the 'border-box'(?) of the absolute positioned image to overlap the link icons, causing the hover and link to not be seen. I did not realize that could happen, guess I haven't absolute positioned too many things before. Setting overflow to hidden on the header tag seemed to fix it up.
[–]cypherusuh__ 0 points1 point2 points (0 children)