C
C#3w ago
Tooru

Blazor CSS not loading properly

Hey i am currently working on a Blazor project and the CSS is not loading. I already checked the Filenames, filepath, app.razor and everything is imported correctly. i don't know what the issue is or how i can find it. I googled and asked Chatgpt but i can't seem to find the problem. this is my app.razor:
<!DOCTYPE html>
<html lang="en" data-theme="light">

<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<base href="/" />
<link rel="stylesheet" href="css/normalize.css" />
<link rel="stylesheet" href="css/app.css" />

<!-- Bulma Css -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@1.0.3/css/bulma.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma-calendar@6.0.9/dist/css/bulma-calendar.min.css" />

<!-- Fontawesome -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css" integrity="sha512-Evv84Mr4kqVGRNSgIGL/F/aIDqQb7xQ2vcrdIwxfjThSH8CSR7PBEakCr51Ck+w+/U6swU2Im1vVX0SVk9ABhg==" crossorigin="anonymous" referrerpolicy="no-referrer" />

<!-- Scoped CSS -->
<link rel="stylesheet" href="project_name.styles.css" />
<HeadOutlet />
</head>

<body>
<Routes @rendermode="InteractiveServer" />
<script src="_framework/blazor.web.js"></script>
<script src="js/columnResizer.js"></script>

<script src="https://cdn.jsdelivr.net/npm/bulma-calendar@6.0.9/dist/js/bulma-calendar.min.js"></script>
<script src="js/calendarInterop.js"></script>

</body>

</html>
<!DOCTYPE html>
<html lang="en" data-theme="light">

<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<base href="/" />
<link rel="stylesheet" href="css/normalize.css" />
<link rel="stylesheet" href="css/app.css" />

<!-- Bulma Css -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@1.0.3/css/bulma.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma-calendar@6.0.9/dist/css/bulma-calendar.min.css" />

<!-- Fontawesome -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css" integrity="sha512-Evv84Mr4kqVGRNSgIGL/F/aIDqQb7xQ2vcrdIwxfjThSH8CSR7PBEakCr51Ck+w+/U6swU2Im1vVX0SVk9ABhg==" crossorigin="anonymous" referrerpolicy="no-referrer" />

<!-- Scoped CSS -->
<link rel="stylesheet" href="project_name.styles.css" />
<HeadOutlet />
</head>

<body>
<Routes @rendermode="InteractiveServer" />
<script src="_framework/blazor.web.js"></script>
<script src="js/columnResizer.js"></script>

<script src="https://cdn.jsdelivr.net/npm/bulma-calendar@6.0.9/dist/js/bulma-calendar.min.js"></script>
<script src="js/calendarInterop.js"></script>

</body>

</html>
2 Replies
Tooru
TooruOP3w ago
Those are the css and razor file Thank you in advance 🙏 okay the css is now loading when i started it in debug mode and not via dotnet start

Did you find this page helpful?