Jump to content

Hey I'm fairly new to HTML and I've got a bit of CSS going on in my website but when I add a link on the menu in my website it doesn't work (under the YouTube part). Any one know why? Thanks!

Some of the code:

    <div class="js-sticky">
            <div class="fh5co-main-nav">
                <div class="container-fluid">
                    <div class="fh5co-menu-1">
                        <a href="#" data-nav-section="home">Home</a>
                      <a href="index.html" data-nav-section="about">About</a>
                      <a href="#" data-nav-section="podcasts">Podcasts</a>
                    </div>
                    <div class="fh5co-logo"><a href="index.html">CR</a></div>
                    <div class="fh5co-menu-2">
                      <a href="#" data-nav-section="catogeries">Catogeries</a>
                      <a href="#" data-nav-section="features">Features</a>
                      <a href="https://www.youtube.com/channel/UCtH_99dduNFYCMgZRsoi-XQ">YouTube</a>
                    </div>
                </div>

Link to comment
https://linustechtips.com/topic/605710-why-does-my-link-not-work-in-html/
Share on other sites

Link to post
Share on other sites

You're missing two </div>'s in this snippet of code.

 

Anyways, what link in what way does not work? Does it not show up? Does it lead to a 404? etc.

 

"We're all in this together, might as well be friends" Tom, Toonami.

 

mini eLiXiVy: my open source 65% mechanical PCB, a build log, PCB anatomy and discussing open source licenses: https://linustechtips.com/topic/1366493-elixivy-a-65-mechanical-keyboard-build-log-pcb-anatomy-and-how-i-open-sourced-this-project/

 

mini_cardboard: a 4% keyboard build log and how keyboards workhttps://linustechtips.com/topic/1328547-mini_cardboard-a-4-keyboard-build-log-and-how-keyboards-work/

Link to post
Share on other sites

On 6/6/2016 at 2:14 PM, Minibois said:

You're missing two </div>'s in this snippet of code.

 

Anyways, what link in what way does not work? Does it not show up? Does it lead to a 404? etc.

 

It doesn't respond at all (sorry for slow reply)

Link to post
Share on other sites

7 minutes ago, Aztec said:

It doesn't respond at all (sorry for slow reply)

Well which one of them does not respond? All the ones with the "data-nav-section="blank"" things or just all?

"We're all in this together, might as well be friends" Tom, Toonami.

 

mini eLiXiVy: my open source 65% mechanical PCB, a build log, PCB anatomy and discussing open source licenses: https://linustechtips.com/topic/1366493-elixivy-a-65-mechanical-keyboard-build-log-pcb-anatomy-and-how-i-open-sourced-this-project/

 

mini_cardboard: a 4% keyboard build log and how keyboards workhttps://linustechtips.com/topic/1328547-mini_cardboard-a-4-keyboard-build-log-and-how-keyboards-work/

Link to post
Share on other sites

14 minutes ago, Aztec said:

The "href="https://www.youtube.com/channel/UCtH_99dduNFYCMgZRsoi-XQ">YouTube</a>" Part 

Try removing that link and inserting for example https://google.com/ and see if it fixes anything.

Assuming you don't have any weird issues it should work fine. Make sure all links are ended with </a>, all divs are ended with </div>, etc.

What you could do is, in Chrome and FireFox at least, Ctrl+Shift+I (Inspect element) and go to the errors tab (On Chrome it's on the right) and see if it mentions anything about the broken part.

"We're all in this together, might as well be friends" Tom, Toonami.

 

mini eLiXiVy: my open source 65% mechanical PCB, a build log, PCB anatomy and discussing open source licenses: https://linustechtips.com/topic/1366493-elixivy-a-65-mechanical-keyboard-build-log-pcb-anatomy-and-how-i-open-sourced-this-project/

 

mini_cardboard: a 4% keyboard build log and how keyboards workhttps://linustechtips.com/topic/1328547-mini_cardboard-a-4-keyboard-build-log-and-how-keyboards-work/

Link to post
Share on other sites

2 minutes ago, Minibois said:

Try removing that link and inserting for example https://google.com/ and see if it fixes anything.

Assuming you don't have any weird issues it should work fine. Make sure all links are ended with </a>, all divs are ended with </div>, etc.

What you could do is, in Chrome and FireFox at least, Ctrl+Shift+I (Inspect element) and go to the errors tab (On Chrome it's on the right) and see if it mentions anything about the broken part.

I've tried that thanks, do you think there might be a problem with the css?

Link to post
Share on other sites

6 minutes ago, Aztec said:

I've tried that thanks, do you think there might be a problem with the css?

I doubt the css file is causing the link not to work, but the <div> stuff might.

 

I'm having trouble understanding the problem with this. It should work fine if you are not missing any stuff (like <a>, etc. what I mentioned) and you are also not getting errors. Do you mind linking the website (through PM if you don't want other to see it) and tell me exactly which link does not work?

"We're all in this together, might as well be friends" Tom, Toonami.

 

mini eLiXiVy: my open source 65% mechanical PCB, a build log, PCB anatomy and discussing open source licenses: https://linustechtips.com/topic/1366493-elixivy-a-65-mechanical-keyboard-build-log-pcb-anatomy-and-how-i-open-sourced-this-project/

 

mini_cardboard: a 4% keyboard build log and how keyboards workhttps://linustechtips.com/topic/1328547-mini_cardboard-a-4-keyboard-build-log-and-how-keyboards-work/

Link to post
Share on other sites

5 minutes ago, Minibois said:

I doubt the css file is causing the link not to work, but the <div> stuff might.

 

I'm having trouble understanding the problem with this. It should work fine if you are not missing any stuff (like <a>, etc. what I mentioned) and you are also not getting errors. Do you mind linking the website (through PM if you don't want other to see it) and tell me exactly which link does not work?

Yeah sure could do thanks, I've kinda came up with a work around for it tho but I'll send you the file.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×