title: Parallax image zooming in no matter what I do
body: <p>it would seem this question has been asked many times over different websites with no real &quot;ah-ha!&quot; answer. I'm still very new and I understand there's a million different ways to code this but I'm hoping for a very simple solution that won't require me to rewrite my code.</p>
  <p>It's my understanding this is the inherent nature of parallax, people either have had to crop the images to make them work or have had to do very large workarounds to solve the issue that parallax inherently zooms in or messes with the dimension of the original picture, no matter the orientation on the page (in my case, I'd like to keep it on the left side of the screen, with the text on the right being the scrolling element, haven't gotten around to it but having the nav bar on the top right-half of the page is my next project).</p>
  <p>The dimensions of the picture are 1341x2063; I've heard to people setting max-height 2063px; min-height 1341px;. Tried that, didn't work.</p>
  <p>I threw up an imgur link for the actual picture I'm working with inside my code, here's a screenshot of what it's looking like on my end: <a href="https://imgur.com/lVrQgrQ" rel="nofollow noreferrer">https://imgur.com/lVrQgrQ</a></p>
  <p>My html has my parallax's css inline and I'd like to keep it that way as it's easy for me to understand without having to rework a ton of items.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>@charset "UTF-8";
  
  ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #333;
  }
  
  li {
    float: left;
  }
  
  li a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
  }
  
  
  /* Change the link color to #111 (black) on hover */
  li a:hover {
    background-color: #111;
  }
  
  .active {
    background-color: #4CAF50;
  }
  
  button {
    transition-duration: 0.4s;
    background-color: #800080; /* Purple */
    border: none;
    color: white;
    padding: 6px 38px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    border-radius: 8px;
  }
  
  button:hover{
    background-color: #4CAF50; /* Green */
    color: white;
  }
  
  /* Centered text */
  .centered {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  
    &lt;link href="style.css" rel="stylesheet"&gt;
      
      &lt;!-- Adding "active" class/tag to index, for navbar --&gt;
    &lt;link href="index.html" class=active&gt;
      
    &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt;
    &lt;meta http-equiv="Content-Style-Type" content="text/css"&gt;
    &lt;meta name="description" content="Learn about Tom Waters, English tutoring services in Seoul, resume and more."&gt;
  
    &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;
      
      
    &lt;title&gt;Me | Home&lt;/title&gt;
      
      &lt;!--    GOOGLE FONTS
      &lt;link href="https://fonts.googleapis.com/css2?family=Amatic+SC&amp;display=swap" rel="stylesheet"&gt;
      --&gt;
      
    &lt;meta name="Generator" content="Cocoa HTML Writer"&gt;
    &lt;meta name="CocoaVersion" content="1671.6"&gt;
      
      &lt;style&gt;
          .parallax {
              /* Image to be used */
              background-image: url("https://imgur.com/a/FHtZqm7");
              min-height: 600px;
  
              /*scrolling effect*/
              background-attachment: fixed;
              background-position: left;
              
              /*troubleshooting image width */
              
              width: 50%;
              height: 100%;
              background-repeat: no-repeat;
              background-size: auto;
              
          }
      
      
      /* Turn off parallax scrolling for tablets and phones. Increase the pixels if needed 
      @media only screen and (max-device-width: 1366px) {
      .parallax {
      background-attachment: scroll;
       }
       }
      */
          
      &lt;/style&gt;
      
      
  &lt;/head&gt;
  &lt;body&gt;
  
      &lt;div class="parallax"&gt;&lt;/div&gt;
      &lt;div style="height:400px;background-color:lightgray;font-size:28px"&gt;
  
      &lt;center&gt;
          &lt;nav&gt;
            &lt;ul id="mainMenu"&gt;
              &lt;li&gt;&lt;a href="about me.html"&gt;About Me&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="Tutoring Services.html"&gt;Tutoring Services&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="Resume.html"&gt;Resume&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="photography_portfolio/photography%20portfolio.html"&gt;Photography Portfolio&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="contact.html"&gt;Contact&lt;/a&gt;&lt;/li&gt;  
              &lt;li style="float:right"&gt;&lt;a class="active" href="index.html"&gt;Home&lt;/a&gt;&lt;/li&gt;
            &lt;/ul&gt;
          &lt;/nav&gt;
       &lt;/center&gt;
          
          &lt;br&gt;&lt;br&gt;&lt;br&gt;
          
          &lt;p&gt;&lt;center&gt;
          This is me,
  
          &lt;br&gt;&lt;br&gt;and this is a personal and professional website, designed solely by myself (as a personal project) with the aim of displaying my resume, contact information and other items in an accessible manner for interested parties to see.     
          &lt;/center&gt;&lt;/p&gt;
          
          &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>