r/CodingHelp • • Oct 15 '26

[CSS] I can’t figure out what I’ve done wrong

So I recently made a website for a buddy’s streaming career. It’s a basic linktree more or less. My issue is that when I run a test I cannot see the links. I tap the area they should be and they work but they don’t appear. What could I have done wrong

1 Upvotes

15 comments sorted by

•

u/AutoModerator Oct 15 '26

Thank you for posting on r/CodingHelp!

Please check our Wiki for answers, guides, and FAQs: https://coding-help.vercel.app

Our Wiki is open source - if you would like to contribute, create a pull request via GitHub! https://github.com/DudeThatsErin/CodingHelp

We are accepting moderator applications: https://forms.fillout.com/t/ua41TU57DGus

We also have a Discord server: https://discord.gg/geQEUBm

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

4

u/boomer1204 Oct 15 '26

There is no way anyone could give you any realistic advice we would just be guessing and wasting our and your time.

Push the code up to github and share a link and we can help you troubleshoot (if you aren't already using github make sure any private keys are not being tracked and pushed up to github for others to see

0

u/SDLong2901 Oct 16 '26

Issue with that is I can’t do that with the coder I’m running. It’s JSAnywhere and I can’t offload codes to anything unless I already have a domain to push it to

2

u/gofuckadick Oct 16 '26

Having the code would really help here, but there are a few things that it could be.

If the links still work when you tap where they're supposed to be then they're probably being rendered correctly but hidden by CSS. So, it would likely be that the text color is the same as the background color, or it could also be something like opacity: 0 making them transparent.

You could inspect one of the links in your browser's developer tools. If you right click where the link should be and click Inspect, and then go to the Computed tab in the CSS panel then you can check properties like color, opacity, visibility, and background-color. If the text color matches the background behind it, for example, you've probably found the problem.

Are the entire buttons invisible, or just the text? You said you "tap" the area that they should be, so are you trying on mobile? Does this happen on desktop too, or only mobile? If you can share the URL or your HTML/CSS, it'd be a hell of a lot easier to figure out what's going on.

1

u/SDLong2901 Oct 16 '26

The entire button and yes I’m on mobile.

1

u/SDLong2901 Oct 16 '26

I would post a picture of the code but I’m 90% sure that’s a violation of the rules on this subreddit

2

u/gofuckadick Oct 16 '26 edited Oct 16 '26

Rule 5, in the sidebar of the subreddit, specifically says to format your code properly or share it through something like Gist or Pastebin and "If possible please provide a live example of your issue" so I'm 100% sure that it isn't a violation. That's pretty much the point of this subreddit. You don't need a domain or Github repository or anything, you can just copy your HTML and CSS into Pastebin and share the link here. Or even a screenshot, but that really isn't the most helpful.

Knowing that the entire button is invisible helps, though. It could be something like opacity: 0, or a CSS rule affecting the button's background, border, or visibility. You could check into those yourself, but without the code then troubleshooting is hitting a wall here.

1

u/SDLong2901 Oct 16 '26

2

u/gofuckadick Oct 16 '26

Looks like the problem is probably right here - you have empty anchor elements. The reason that your links are invisible is because they don't have any text content. Try putting actual text in between the <a href="..."></a> tags. Change it to this:

<a href="https://twitch.tv/superslappin">Twitch</a>
<a href="https://www.tiktok.com/@redgrave223?_r=1&_t=ZP-9AYp1cXDuhj">TikTok</a>

And see what happens.

1

u/SDLong2901 Oct 16 '26

Ah yes that works thank you

1

u/SDLong2901 Oct 16 '26

The links are just below the last word

1

u/Traveling-Techie Oct 16 '26

Have you looked at the HTML?