I also had faced the same problem but I got a solution. The solution is:
<link href="./css/stylesheet.css" rel="stylesheet" type="text/css" />
Note that the "." before "/css" is indicating the current working directory on Ubuntu. I hope this will help you.
Answer from user276769 on askubuntu.comlinux - CSS doesn't work for some reason - Stack Overflow
External css file and Ubuntu conflict!
userChrome.css not working on Linux
Removing the @namespace url line worked, thank you!
More on reddit.comHTML not loading CSS file - Stack Overflow
I also had faced the same problem but I got a solution. The solution is:
<link href="./css/stylesheet.css" rel="stylesheet" type="text/css" />
Note that the "." before "/css" is indicating the current working directory on Ubuntu. I hope this will help you.
I'm a derp. I figured it out. Turns out it was a page-specific problem, not a server problem.
Here's the code for my page:
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div id="content">
...some content...
</div>
<div id="phpinfo">
<?php include('info.php') ?>
</div>
</body>
</html>
And here's the code for info.php
<?php phpinfo(); ?>
When the include in my HTML page is commented out, the stylesheet loads as expected. A quick glance at the source code for info.php reveals
<style type="text/css">
body {background-color: #ffffff; color: #000000;}
Overriding the external stylesheet, but not any internal or inline style info.
Thanks for looking at my question.
My tab bar is way, way too small on Linux. I followed Arch's own documentation on how to fix this by increasing layout.css.devPixelsPerPx (mine is at 1.4), and then adjusting font size by editing userChrome.css to select the desired size. Problem is that Firefox won't actually change anything based on what I put in that file. I have set toolkit.legacyUserProfileCustomizations.stylesheets to True, and my userChrome.css file looks like this (yes, I'm using nano because Vim is too advanced for my smooth brain). I changed it to a ton of different values and I can confirm that the font size is not actually changing.
Any insight is appreciated.
Add
type="text/css"
to your link tag
While this may no longer be necessary in modern browsers the HTML4 specification declared this a required attribute.
type = content-type [CI]
This attribute specifies the style sheet language of the element's contents and overrides the default style sheet language. The style sheet language is specified as a content type (e.g., "text/css"). Authors must supply a value for this attribute; there is no default value for this attribute.
Check both files in the same directory and then try this
<link href="style.css" rel="stylesheet" type="text/css"/>
I installed Ubuntu 24.04 LTS a few days ago and when I run the CSS, it appears that it is running and after a few seconds it closes and never opens the game. As I understand it, Valve games are native to Linux, so they do not require Proton. I have already tried other games (CS1.6, HL1 and HL2) and they work as if nothing had happened.
Someone knows why this happens and how I can solve it? Maybe it's a very beginner's problem haha, idk
EDIT: Looks like it's something else, as Michele says it works in Chrome but not IE when served from Linux.
Judging by your filenames, you may have just encountered a Windows => Linux gotcha:
The Linux filesystem is Case Sensitive, Windows is case insensitive.
You'll need to double check that you're using the right casing in your URLs, else the file won't be found when Linux goes to look for it.
I had to add this line and it was fixed:
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

