How do I make Macbooks properly size objects on my site?











up vote
0
down vote

favorite












I recently switched from using pixel values to using rem to size my objects on my site. My old format was like this:



.some-class{
@media (max-width: $split-dimension) {
width:10px;
}
@media (min-width: $split-dimension) {
width:15px;
}
}


I am trying to dynamically scale object using rem by setting the base rem in the scss file. I have set a dimension to split on - basically telling it that if the window is larger than a set size, show one size site, and if it's smaller, show the other. Here is that code:



$split-dimension: 1800px;

:root {
@media (max-width: $split-dimension) {
font-size: 41.666%;
}
@media (min-width: $split-dimension) {
font-size: 62.5%;
}
body {
font-size: 1.6rem;
}
}

.some-class{
width: 1.5rem;
}


Before making the switch, I noticed that on Macbooks that it would show the smaller scaled version of the site even on high resolution screens (I tested it on a 2018 Macbook), but it would still appear the same as the larger-scaled version does on a Windows machine (I inspected the objects and saw they were using the smaller pixel value on the Macbook, and the expected pixel values on Window). Changing the css of the smaller split dimension would affect the fullscreen Macbook page, but not the fullscreen Windows page.



Since changing to setting the rem and using one rem value for both sizes, it works properly on windows, but now it's displaying the correct sized objects on Macbook but the site looks zoomed in (something that has 1900px width would extend far beyond the border of the browser window even though the window is bigger than 1920px).



It seems that it's properly detecting that the Macbook browser window is larger than the split dimension now, but the objects are still being scaled up for some reason. I've tried this across multiple Macbooks and they all have the same problem.



I can't find anything explaining this zoom problem with Macbooks. Is there something I can do to circumvent this problem?










share|improve this question


























    up vote
    0
    down vote

    favorite












    I recently switched from using pixel values to using rem to size my objects on my site. My old format was like this:



    .some-class{
    @media (max-width: $split-dimension) {
    width:10px;
    }
    @media (min-width: $split-dimension) {
    width:15px;
    }
    }


    I am trying to dynamically scale object using rem by setting the base rem in the scss file. I have set a dimension to split on - basically telling it that if the window is larger than a set size, show one size site, and if it's smaller, show the other. Here is that code:



    $split-dimension: 1800px;

    :root {
    @media (max-width: $split-dimension) {
    font-size: 41.666%;
    }
    @media (min-width: $split-dimension) {
    font-size: 62.5%;
    }
    body {
    font-size: 1.6rem;
    }
    }

    .some-class{
    width: 1.5rem;
    }


    Before making the switch, I noticed that on Macbooks that it would show the smaller scaled version of the site even on high resolution screens (I tested it on a 2018 Macbook), but it would still appear the same as the larger-scaled version does on a Windows machine (I inspected the objects and saw they were using the smaller pixel value on the Macbook, and the expected pixel values on Window). Changing the css of the smaller split dimension would affect the fullscreen Macbook page, but not the fullscreen Windows page.



    Since changing to setting the rem and using one rem value for both sizes, it works properly on windows, but now it's displaying the correct sized objects on Macbook but the site looks zoomed in (something that has 1900px width would extend far beyond the border of the browser window even though the window is bigger than 1920px).



    It seems that it's properly detecting that the Macbook browser window is larger than the split dimension now, but the objects are still being scaled up for some reason. I've tried this across multiple Macbooks and they all have the same problem.



    I can't find anything explaining this zoom problem with Macbooks. Is there something I can do to circumvent this problem?










    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I recently switched from using pixel values to using rem to size my objects on my site. My old format was like this:



      .some-class{
      @media (max-width: $split-dimension) {
      width:10px;
      }
      @media (min-width: $split-dimension) {
      width:15px;
      }
      }


      I am trying to dynamically scale object using rem by setting the base rem in the scss file. I have set a dimension to split on - basically telling it that if the window is larger than a set size, show one size site, and if it's smaller, show the other. Here is that code:



      $split-dimension: 1800px;

      :root {
      @media (max-width: $split-dimension) {
      font-size: 41.666%;
      }
      @media (min-width: $split-dimension) {
      font-size: 62.5%;
      }
      body {
      font-size: 1.6rem;
      }
      }

      .some-class{
      width: 1.5rem;
      }


      Before making the switch, I noticed that on Macbooks that it would show the smaller scaled version of the site even on high resolution screens (I tested it on a 2018 Macbook), but it would still appear the same as the larger-scaled version does on a Windows machine (I inspected the objects and saw they were using the smaller pixel value on the Macbook, and the expected pixel values on Window). Changing the css of the smaller split dimension would affect the fullscreen Macbook page, but not the fullscreen Windows page.



      Since changing to setting the rem and using one rem value for both sizes, it works properly on windows, but now it's displaying the correct sized objects on Macbook but the site looks zoomed in (something that has 1900px width would extend far beyond the border of the browser window even though the window is bigger than 1920px).



      It seems that it's properly detecting that the Macbook browser window is larger than the split dimension now, but the objects are still being scaled up for some reason. I've tried this across multiple Macbooks and they all have the same problem.



      I can't find anything explaining this zoom problem with Macbooks. Is there something I can do to circumvent this problem?










      share|improve this question













      I recently switched from using pixel values to using rem to size my objects on my site. My old format was like this:



      .some-class{
      @media (max-width: $split-dimension) {
      width:10px;
      }
      @media (min-width: $split-dimension) {
      width:15px;
      }
      }


      I am trying to dynamically scale object using rem by setting the base rem in the scss file. I have set a dimension to split on - basically telling it that if the window is larger than a set size, show one size site, and if it's smaller, show the other. Here is that code:



      $split-dimension: 1800px;

      :root {
      @media (max-width: $split-dimension) {
      font-size: 41.666%;
      }
      @media (min-width: $split-dimension) {
      font-size: 62.5%;
      }
      body {
      font-size: 1.6rem;
      }
      }

      .some-class{
      width: 1.5rem;
      }


      Before making the switch, I noticed that on Macbooks that it would show the smaller scaled version of the site even on high resolution screens (I tested it on a 2018 Macbook), but it would still appear the same as the larger-scaled version does on a Windows machine (I inspected the objects and saw they were using the smaller pixel value on the Macbook, and the expected pixel values on Window). Changing the css of the smaller split dimension would affect the fullscreen Macbook page, but not the fullscreen Windows page.



      Since changing to setting the rem and using one rem value for both sizes, it works properly on windows, but now it's displaying the correct sized objects on Macbook but the site looks zoomed in (something that has 1900px width would extend far beyond the border of the browser window even though the window is bigger than 1920px).



      It seems that it's properly detecting that the Macbook browser window is larger than the split dimension now, but the objects are still being scaled up for some reason. I've tried this across multiple Macbooks and they all have the same problem.



      I can't find anything explaining this zoom problem with Macbooks. Is there something I can do to circumvent this problem?







      css macos






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 21 at 16:53









      JayBee

      891110




      891110
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote



          accepted










          I found that by changing



          :root {
          @media (max-width: $split-dimension) {
          font-size: 41.666%;
          }
          @media (min-width: $split-dimension) {
          font-size: 62.5%;
          }
          body {
          font-size: 1.6rem;
          }
          }


          to



          :root {
          @media (max-width: $split-dimension) {
          font-size: 6.66px;
          }
          @media (min-width: $split-dimension) {
          font-size: 10px;
          }
          body {
          font-size: 1.6rem;
          }
          }


          I got the desired result.






          share|improve this answer





















            Your Answer






            StackExchange.ifUsing("editor", function () {
            StackExchange.using("externalEditor", function () {
            StackExchange.using("snippets", function () {
            StackExchange.snippets.init();
            });
            });
            }, "code-snippets");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "1"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53416997%2fhow-do-i-make-macbooks-properly-size-objects-on-my-site%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote



            accepted










            I found that by changing



            :root {
            @media (max-width: $split-dimension) {
            font-size: 41.666%;
            }
            @media (min-width: $split-dimension) {
            font-size: 62.5%;
            }
            body {
            font-size: 1.6rem;
            }
            }


            to



            :root {
            @media (max-width: $split-dimension) {
            font-size: 6.66px;
            }
            @media (min-width: $split-dimension) {
            font-size: 10px;
            }
            body {
            font-size: 1.6rem;
            }
            }


            I got the desired result.






            share|improve this answer

























              up vote
              0
              down vote



              accepted










              I found that by changing



              :root {
              @media (max-width: $split-dimension) {
              font-size: 41.666%;
              }
              @media (min-width: $split-dimension) {
              font-size: 62.5%;
              }
              body {
              font-size: 1.6rem;
              }
              }


              to



              :root {
              @media (max-width: $split-dimension) {
              font-size: 6.66px;
              }
              @media (min-width: $split-dimension) {
              font-size: 10px;
              }
              body {
              font-size: 1.6rem;
              }
              }


              I got the desired result.






              share|improve this answer























                up vote
                0
                down vote



                accepted







                up vote
                0
                down vote



                accepted






                I found that by changing



                :root {
                @media (max-width: $split-dimension) {
                font-size: 41.666%;
                }
                @media (min-width: $split-dimension) {
                font-size: 62.5%;
                }
                body {
                font-size: 1.6rem;
                }
                }


                to



                :root {
                @media (max-width: $split-dimension) {
                font-size: 6.66px;
                }
                @media (min-width: $split-dimension) {
                font-size: 10px;
                }
                body {
                font-size: 1.6rem;
                }
                }


                I got the desired result.






                share|improve this answer












                I found that by changing



                :root {
                @media (max-width: $split-dimension) {
                font-size: 41.666%;
                }
                @media (min-width: $split-dimension) {
                font-size: 62.5%;
                }
                body {
                font-size: 1.6rem;
                }
                }


                to



                :root {
                @media (max-width: $split-dimension) {
                font-size: 6.66px;
                }
                @media (min-width: $split-dimension) {
                font-size: 10px;
                }
                body {
                font-size: 1.6rem;
                }
                }


                I got the desired result.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered yesterday









                JayBee

                891110




                891110






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53416997%2fhow-do-i-make-macbooks-properly-size-objects-on-my-site%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Berounka

                    Sphinx de Gizeh

                    Different font size/position of beamer's navigation symbols template's content depending on regular/plain...