Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <header id="header">

  <!--###Logo-->
  <div class="logo">
    <img class="logo" src="https://i.pinimg.com/originals/cd/f7/c8/cdf7c8b1297978b22c916d42c7276979.png" alt="logo" id="header-img">
  </div>

  <!--Header links-->
  <nav id="nav-bar" class="nav-bar">

    <!--company name-->
    <h2 id="company-name">Saint Juliano</h2>
    <ul class='header-table'>
      <li><a class='nav-link' href=#about>About</a></li>
      <li><a class='nav-link' href=#catagories>Catagories</a></li>
      <li><a class='nav-link' href=#womens>Womens</a></li>
      <li><a class='nav-link' href=#mens>Mens</a></li>

    </ul>
  </nav>
</header>

<main>
  <!--###Main pic-->
  <img id='main-img' src="https://spectr-magazine.com/wp-content/uploads/2019/09/scotchsoda.jpg" alt="pic of woman and man">

  <!--Company Desc-->
  <div class="company-desc">
    <h2>About Us</h2>
    <p>We are the world know brand <strong>Saint Juliano</strong>. Started in 1998 and now we have been the trendsetter for the fashion industry for more than 10 years
      The reason for our success can come from the quality products made from Italy and our cheap prices that proves that we care about the our customers more than making money.
    </p>
  </div>

  <!--###Product Video-->
  <video class='product-video' width="320" height="320" controls>
    <source class='video-link' src="https://www.youtube.com/watch?v=MYRyYs4SHqc" type="video/mp4">Your browser does not support the video tag.
  </video>

  <!--###Catagories-->
  <section class="catagory-table">
    <h2>Catagory</h2>
    <table>
      <thead>
        <tr>
          <th>T-shirts</th>
          <th>Pants</th>
          <th>Accessories</th>
        </tr>
      </thead>

      <tbody>
        <tr>
          <td><img class="catagory-img" src='https://www.scotch-soda.com/dw/image/v2/AANA_PRD/on/demandware.static/-/Sites-scotch-master-catalog-SS20/default/dw188370ff/images/xlarge-C862276A-24E2-4EF2-8417E23773608D20.png?sw=1125&strip=false&bgcolor=eeecea'>
          </td>
          <td><img class="catagory-img" src="https://cdn.shopify.com/s/files/1/0246/2487/products/146689_4_1024x.jpg?v=1555113046">
          </td>
          <td><img class="catagory-img" src='https://cdn.fashiola.at/L616025967/scotch-soda-scotch-soda-maison-damen-printed-leather-gloves-with-rib-detail-handschuhe.jpg'>
          </td>
        </tr>
      </tbody>

    </table>

    <!--###womens wear-->
    <section class="womens-table">
      <h2>Womens</h2>
      <table>

        <tbody>

          <tr>
            <td><img class="table-img" id="tshirt" src='https://www.scotch-soda.com/dw/image/v2/AANA_PRD/on/demandware.static/-/Sites-scotch-master-catalog-SS20/default/dw188370ff/images/xlarge-C862276A-24E2-4EF2-8417E23773608D20.png?sw=1125&strip=false&bgcolor=eeecea'><br>
              t-shirt <button>ADD TO CART</button>
            </td>
            <td><img class="table-img" id="pants" src='https://plnylala.pl/pol_pl_LALA-Track-Caramel-Pants-733_6.jpg'><br>
              pants <button>ADD TO CART</button>
            </td>
            <td><img class="table-img" id="accesories" src='https://img.grouponcdn.com/seocms/WA2nKaArPM7kGhsLZ5ahHpr4sR1/nine-cool-gift-ideas-for-men_inline-image_jpg-600x390_jpg-600x390'><br>
              accesories <button>ADD TO CART</button>
            </td>
          </tr>
        </tbody>
      </table>
    </section>

    <!--###Menswear-->
    <section class="menswear-table">
      <h2>Mens</h2>
      <table>

        <tbody>

          <tr>
            <td><img class="table-img" id="tshirt" src='https://lh3.googleusercontent.com/proxy/dlSUGB1g-9BvyeofsI-NNgLMkx_LWh-yF-AqDqAm2BtKxZp45lybq85MFOwEN_PM5lDHL4KmpudvRh17MXtBXRpfNxXnpc-q0rSJ'><br>
              t-shirt blah blah
            </td>
            <td><img class="table-img" id="pants" src='https://plnylala.pl/pol_pl_LALA-Track-Caramel-Pants-733_6.jpg'><br>
              t-shirt blah blah
            </td>
            <td><img class="table-img" id="accesories" src='https://img.grouponcdn.com/seocms/WA2nKaArPM7kGhsLZ5ahHpr4sR1/nine-cool-gift-ideas-for-men_inline-image_jpg-600x390_jpg-600x390'><br>
              t-shirt blah blah
            </td>
          </tr>
        </tbody>
      </table>
    </section>

    <!--##news letter and subscription-->
    <section class="news-leter">
      <h2>Subscribe to Our Newsletter for Discount and New Deals</h2>
      <form id="submit-email" action="https://www.freecodecamp.com/email-submit">
        <input id="email" name='email' type='email' placeholder='Enter your email address' required>
        <input id="submit" type='submit' value='Enter'>

      </form>
    </section>

    <!--footer-->
    <footer>
      <ul>
        <li><a href="#">Privacy</a></li>
        <li><a href="#">Terms</a></li>
        <li><a href="#">Contract</a></li>
      </ul>

      <span>Copyright 2020, ZAZA</span>

    </footer>
</main>
              
            
!

CSS

              
                * {
  margin:0; 
  padding:0;
/*resets the margins coming from the 
  browser style sheet (we never see that stylesheet)
  */
  box-sizing:border-box; 
  /*makes easier to work with widths*/
}

header{
    position:fixed;
    display: flex;
    flex-direction: row;
    width: 100%;
  /*we want it the full width, otherwise
  takes the width of the content, same for position 
  absolute. Position relative does not need any of that, 
  and position:static neither*/
    background-color: white;
    align-items: center;
    justify-content:center;
  /*center vertically and horizontally*/
    box-shadow: 0 0 4px #888888d7;
}

/*dont use table, use a grid for grid-like layouts*/
.header-table li{
    position: relative;
    display: inline-block;
        }
.header-table a{
    text-decoration: none;
        }

.catagory-img{
    width:  300px;
    height: 400px;
    display: inline;
        }

.logo{
    height: 80px;
    }
.nav-bar{
    margin: -8% auto;
    list-style: none;
    text-decoration-color: black;

        }
#company-name{
           text-align: center; 
        }
main{
    display: flex;
    flex-direction: column;
    align-items: center;       
        }

#main-img{
     width: 80%;       
        }
.company-desc{
    text-align: center;
    width: 80%;
}
.table-img{
/*
  origininal image1 width:1000px, height:1000px
  mimage 1 width: 500px-->200px, height:700px-->700*2/5
  */
  width: 200px;
  height: 200px;

/*HOW TO WORK WITH IMAGES
    object-fit:cover;
  1 try to use images with same size
  2. try to use images with same ratio
  3. use object-fit:cover
  */
}
/*REMEMBER: STyling always follows the order of the html*/

              
            
!

JS

              
                
              
            
!
999px

Console