local html file with css don't works
-
linuc last edited by
Hi
I want to create a web page locally, using html and css. To open a local html file, I have to do ctrl+o and then select the file. Directly from the file manager with right click (open with opera) it is not working. I get just a blank opera window. In addition, the css file is not loaded if I use ctrl+o.
What could be the reason for this? I am working with Linux Q4OS (Debian based).
-
linuc last edited by
Your answer gave me the right idea!
I have a theme folder and a css folder, on the same level, which is the home level of my website project. So I did this /css/style.css. I thought it goes back to the home folder and then to the css folder. But obviously this does not work with local files, because the home is much higher up. So I changed it in ../css/style.css and now it works.
The other problem, that I could not open an html file directly with Opera, is apparently related to Q4OS. I had html files opened as standard with KWrite (text editor). But if I then click on the right and select Opera, only Opera opens, but the file is not displayed. If I set html as the default to Opera, then it works. It is interesting that then right click and KWrite also works.
thank you!
-
alobpreis last edited by
@linuc said in local html file with css don't works:
only Opera opens, but the file is not displayed
Do you mean that there's an tab with the path but no contents? Or there's not even a new tab for the file? If it's the latter, it sounds like an OS issue, mostly some setting. The OS should call Opera and send the file path as a parameter, and I'd say also between quotes, in case there are spaces (I don't know how Q4OS works in this regard).
-
linuc last edited by
Yes, it is a problem of Q4OS Trinity desktop, respectively of the app Dolphin Trinity (a special version of Dolphin for Tinity). The problem also exists with other files, for example gnumeric. Opera is perfectly ok
Unfortunately, there is not really a light Linux that works perfectly. Each uses a different desktop and lacks good developers. It's a pity that people don't join forces and create a single light Linux, with a single desktop, but it works correctly. Diversity is a word that is used a lot at the moment. It means that people get lost in fantasies. Or to put it another way, it's a mess! Hundreds of genders, but only 2 are real. Hundreds of Linux distributions, but only a few work perfectly.
-