title: Grid gallery photos not showing in React js project How do I fix this
body: <p>So I am building a React web page and implementing a grid gallery, the photo placeholders are there when inspect element but no photos? I checked the photos elsewhere on the page and they work fine just not working inside the grid for some reason. However the loadmore icon is displaying just fine, could this be the size of my photos don't fit in the grid? If this is the case what size should they be to properly work?  How do I fix this
  TIA</p>
  <p>Imported all necc. photo files. Set up my grid Im at a loss</p>
  <pre><code>    import React from 'react'
  import styled from 'styled-components';
  import loadmore from 'images/loadmore.png';
  import salon1 from 'images/salon1.jpg';
  import home from 'images/home.jpg';
  
  
  
  function Portfolio() {
    return (
      &lt;Section id = &quot;portfolio&quot;&gt;
        &lt;div className = &quot;grid&quot;&gt;
  
          &lt;div className = &quot;child-one grid-box&quot;&gt;&lt;/div&gt;
          &lt;div className = &quot;child-two grid-box&quot;&gt;&lt;/div&gt;
          &lt;div className = &quot;child-three grid-box&quot;&gt;&lt;/div&gt;
          &lt;div className = &quot;child-four grid-box&quot;&gt;&lt;/div&gt;
          &lt;div className = &quot;child-five grid-box&quot;&gt;&lt;/div&gt;
          &lt;div className = &quot;child-six grid-box&quot;&gt;&lt;/div&gt;
          &lt;div className = &quot;child-seven grid-box&quot;&gt;&lt;/div&gt;
          &lt;div className = &quot;child-eight grid-box&quot;&gt;&lt;/div&gt;
          &lt;div className = &quot;child-nine grid-box&quot;&gt;&lt;/div&gt;
          &lt;div className = &quot;child-ten grid-box&quot;&gt;&lt;/div&gt;
          &lt;div className = &quot;child-eleven grid-box&quot;&gt;&lt;/div&gt;
       &lt;/div&gt;
       &lt;div className=&quot;portfolio-more&quot;&gt;
         &lt;span id='loadmore'&gt; Load More&lt;/span&gt;
         &lt;img src={loadmore} alt= 'load more'/&gt;
       &lt;/div&gt;
  
      &lt;/Section&gt;
    );
  }
  
  const Section = styled.section`
  min-height: 100vh;
  padding-bottom: 2rem;
  background-color: var(--secondary-color);
   .grid {
     display: grid;
     grid-template-columns: repeat(4, 1fr);
     grid-template-areas:
     &quot;one one two two&quot;
     &quot;one one three four&quot;
     &quot;five six seven seven&quot;
     &quot;eight six seven seven&quot;;
     .grid-box {
       height: 15rem;
       width: 100%;
       cursor: pointer;
       &amp;:nth-of-type (1) {
         grid-area: one;
         background: url(${home}) no-repeat right center;
         background-size: cover;
       }
       &amp;:nth-of-type (2) {
        grid-area: two;
        background: url(${salon1}) no-repeat right center;
        background-size: cover;
      }
      &amp;:nth-of-type (3) {
        grid-area: three;
        background: url(${salon1}) no-repeat right center;
        background-size: cover;
      }
      &amp;:nth-of-type (4) {
        grid-area: four;
        background: url(${home}) no-repeat right center;
        background-size: cover;
      }
      &amp;:nth-of-type (5) {
        grid-area: five;
        background: url(${home}) no-repeat right center;
        background-size: cover;
      }
      &amp;:nth-of-type (6) {
        grid-area: six;
        background: url(${home}) no-repeat right center;
        background-size: cover;
      }
      &amp;:nth-of-type (7) {
        grid-area: seven;
        background: url(${home}) no-repeat right center;
        background-size: cover;
      }
      &amp;:nth-of-type (8) {
        grid-area: eight;
        background: url(${home}) no-repeat right center;
        background-size: cover;
      }
      &amp;:nth-of-type (9) {
        grid-area: nine;
        background: url(${home}) no-repeat right center;
        background-size: cover;
      }
      &amp;:nth-of-type (10) {
        grid-area: ten;
        background: url(${home}) no-repeat right center;
        background-size: cover;
      }
      &amp;:nth-of-type (11) {
        grid-area: eleven;
        background: url(${home}) no-repeat right center;
        background-size: cover;
      }
    
     }
  
  
   }
  `;
  
  export default Portfolio
  </code></pre>