Navigation

    • 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

    Need Code to Ignore 'FIt to Width' in Stylish

    Opera for Windows
    2
    7
    790
    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.
    • Deleted User
      Deleted User last edited by

      I got Opera 12.16. I have my settings for webpages set to 'Fit to Width'. But there are certain webpages that I need to turn this feature off on. I got Stylish installed. What code can I use in a style for a specific webpage to ignore 'Fit to Width'?

      Reply Quote 0
        1 Reply Last reply
      • burnout426
        burnout426 Volunteer last edited by

        I don't know if it's revealed anywhere what Opera does exactly for fit-to-width. So, not sure how to counteract it (if that'd be possible).

        You create site preferences to have domain-specific settings. But, "fit-to-width" isn't in site preferences. Even if you add it to override.ini under the domain in question by adding User Prefs|Rendering mode=-1, it still doesn't work.

        Finding an extension or user js or user css that does its own fit-to-width, but only for the sites you want (or globally with an option to exclude sites) might be your only option. Don't know of any though.

        Reply Quote 0
          1 Reply Last reply
        • Deleted User
          Deleted User last edited by

          Hi, burnout.. Excuse the long wait in replhying to you. I'm currently on a couple of CSS code forums trying to get help with this issue. I'm having difficulty framing my question in the forum in a way they can understand. Is it best to say that I ned a code to "unwrap the word wrap"? Can you please help me say it in a manner thats understandable?

          Also, is there a CSS code in Opera that governs 'fit to width'?

          As always, thank you!!

          Reply Quote 0
            1 Reply Last reply
          • burnout426
            burnout426 Volunteer last edited by

            is there a CSS code in Opera that governs 'fit to width'?

            I assume so. But, I think it's internal. I don't know the CSS that's used.

            Without knowing the CSS used, I would say you'd need two things

            • A reset stylesheet (you can find them on the net).

            • A way to reapply all the pages's CSS. I'd guess you'd have to use scripting for this. But, even then I'm not sure how you'd reapply all the inline styles.

            Then again, I'm not sure exactly at what point Opera applies the CSS for fit-to-width. Might be after everything else on the page (even user css / extensions). Don't know.

            Reply Quote 0
              1 Reply Last reply
            • Deleted User
              Deleted User last edited by

              Hi burnout.. So, just to make sure, 'fit to width' means word wrap?

              Reply Quote 0
                1 Reply Last reply
              • burnout426
                burnout426 Volunteer last edited by

                Hi burnout.. So, just to make sure, 'fit to width' means word wrap?

                Pretty much. But, as far as HTML pages, it'd probably be more accurate to call it "force word wrap" as text still wraps some without out.

                You can try:

                * {
                    word-wrap: initial
                }
                

                or

                * {
                    word-wrap: inherit
                }
                

                or

                * {
                    word-wrap: normal
                }
                

                to see what that does to counteract fit-to-width.

                It might also mean to force elements to have a display property of "inline" or "inline-block" (depending on the element)

                You could try 'initial' or "inherit" for the 'display' property if necessary to see how that helps.

                Reply Quote 0
                  1 Reply Last reply
                • Deleted User
                  Deleted User last edited by

                  Hi burnout.. Thanks for the reply. Unfortunately, I entered those codes in the style I'm using. And they dont work. Btw, if you need to know, the style I'm using is:

                  http://userstyles.org/styles/101312

                  Let me know if you have any other suggestions. Thank you for all your help so far.

                  Reply Quote 0
                    1 Reply Last reply
                  • 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-