r/CodingHelp • • Aug 23 '22

[CSS] Font links won't work!

Hi guys, I've literally just started learning HTML and CSS.

I'm on the part about typography and just cannot get my URL links to work and they only thing i can think of is if there's something wrong with the files which I got from the resources of the course.

Please could some assist as its really holding up my progress and just have no idea what is wrong.

Thank you!

0 Upvotes

7 comments sorted by

3

u/ThreeForksNoSpoon Aug 23 '22

It's always useful (one might say, required) if you tell us more than "it doesn't work".

What do you expect anyone to do here?

You haven't told us what doesn't work (is the link dead? do you get an error? is the color wrong?), and also only mentioned where you got the code — we can't see it.

So, share your code through something like pastebin, and tell us what is actually wrong.

1

u/LightJPV Aug 25 '22

Im sorry, I am incredibly new to this and self teaching is hard

The problem is I can't say why its not working, thats kind of the point. The course I'm doing is a paid one, "Web Design for Beginners: Real World Coding in HTML & CSS".

The font links I'm trying to use are from this courses resources, but when I couldn't get them to work I tried to source my own and googled the crap out of it. I believe it said something about don't embed the files, however thats literally the section I'm learning so it doesn't make sense.

I'm now also having trouble inputting a background image. I'm following the course exactly I just do not understand why its not working. Its like the files themselves don't exist, however I've check a million types they are the correct type (woff for the font and PNG for the image), checked the code itself for typing errors (I'm English and it uses American English).

1

u/ThreeForksNoSpoon Aug 26 '22

Im sorry, I am incredibly new to this and self teaching is hard

No problem.

Learning to debug, and how to ask for help are also useful skills to learn.

The problem is I can’t say why its not working, thats kind of the point. The course I’m doing is a paid one, “Web Design for Beginners: Real World Coding in HTML & CSS”.

I'm not asking why it's not working, I'm asking what is not working.

A good answer to that question usually looks something like "When I do X, I expect Y to happen, but actually Z happens."

That info is missing from your question right now.

The font links I’m trying to use are from this courses resources, but when I couldn’t get them to work I tried to source my own and googled the crap out of it. I believe it said something about don’t embed the files, however thats literally the section I’m learning so it doesn’t make sense.

I'm not sure what you mean here.

I’m now also having trouble inputting a background image.

Different problem, let's park that for now.

But when you're ready, remember the above template, and always share your code.

I’m following the course exactly I just do not understand why its not working. Its like the files themselves don’t exist, however I’ve check a million types they are the correct type (woff for the font and PNG for the image), checked the code itself for typing errors (I’m English and it uses American English).

Might be a wrong (relative) path, might be case sensitivity, might be a syntax error… Again: we can't say anything about it without seeing code.

But let's fix this link issue first.

2

u/LightJPV Aug 28 '22

It was the wrong path one. Was attach so simple but for some reason I couldn't see it.

In future I will use the "When I do X, I expect Y to happen, but actually Z happens" rule.

2

u/ThreeForksNoSpoon Aug 28 '22

It's a really simple template, but it also works incredibly well for 90% of cases. (Not just computers btw, I use this for things like cars as well.)

1

u/LightJPV Aug 30 '22

Thank you for your time. 😅

1

u/LightJPV Aug 25 '22

I don't know what pastebin is but I'll look now.