• Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Rules
    • Help

    Do more on the web, with a fast and secure browser!

    Download Opera browser with:

    • built-in ad blocker
    • battery saver
    • free VPN
    Download Opera

    local html file with css don't works

    Opera for Linux
    2
    5
    2733
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • linuc
      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).

      Reply Quote 1
        alobpreis 1 Reply Last reply
      • alobpreis
        alobpreis @linuc last edited by

        @linuc You might be missing a folder or something when referencing the js/css files. You need to use the developer console and look for errors in the Console or Network tabs.

        Reply Quote 0
          linuc 1 Reply Last reply
        • linuc
          linuc @alobpreis last edited by

          @alobpreis

          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!

          Reply Quote 0
            alobpreis 1 Reply Last reply
          • alobpreis
            alobpreis @linuc 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).

            Reply Quote 0
              linuc 1 Reply Last reply
            • linuc
              linuc @alobpreis last edited by

              @alobpreis

              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.

              Reply Quote 1
                1 Reply Last reply
              • Locked by  leocg leocg 
              • First post
                Last post

              Computer browsers

              • Opera for Windows
              • Opera for Mac
              • Opera for Linux
              • Opera beta version
              • Opera USB

              Mobile browsers

              • Opera for Android
              • Opera Mini
              • Opera Touch
              • Opera for basic phones

              • Add-ons
              • Opera account
              • Wallpapers
              • Opera Ads

              • Help & support
              • Opera blogs
              • Opera forums
              • Dev.Opera

              • Security
              • Privacy
              • Cookies Policy
              • EULA
              • Terms of Service

              • About Opera
              • Press info
              • Jobs
              • Investors
              • Become a partner
              • Contact us

              Follow Opera

              • Opera - Facebook
              • Opera - Twitter
              • Opera - YouTube
              • Opera - LinkedIn
              • Opera - Instagram

              © Opera Software 1995-