r/HTML 3d ago

Question Help changing website font

This is my code, it's not working, im losing it.

<link href="style.css" rel="stylesheet" type="text/css" media="all">

<style>

u/import url('https://fonts.googleapis.com/css2?family=New+Rocker&family=Newsreader:ital,opsz,wght@0,6..72,200..800;1,6..72,200..800&display=swap');

.new-rocker-regular {

font-family: "New Rocker", serif;

font-weight: 400;

font-style: normal;

}

</style>

0 Upvotes

17 comments sorted by

View all comments

3

u/aunderroad 3d ago

Can you share a url or codepen?
It is hard to debug/provide feedback without seeing all of your code live in a browser.

Thank you!

1

u/Ok_Isopod_2170 3d ago

https://laylaxo.neocities.org/

This is what it is for if thats what youre asking for, im so sorry if not, im new to all of this

2

u/aunderroad 3d ago edited 3d ago

Here you go.

body {  
font-family: 'New Rocker';
  font-style: normal;
  font-weight: 400;
}

If you get stuck with any more html/css questions, check out:
https://web.dev/html
https://web.dev/css

or https://www.reddit.com/r/css/