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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

              
                <link href="https://fonts.googleapis.com/css?family=Anton&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Dancing+Script&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Teko&display=swap" rel="stylesheet">
<!-- Navigatin bar-->
<header id="header">
  
  <a class="brandLink" href="#" target="_blank">
    <image id="header-img" src="https://previews.123rf.com/images/vicasso/vicasso1802/vicasso180200101/94833656-king-crown-moustache-and-beard-on-white-background-logo-with-typography-vector-illustration-design-.jpg"
           alt="King Technologies Logo">
      </a>
    
    <nav id="nav-bar" class="NavBar" fixed-top>
      <ul class="menu">
        <li> <a class="nav-link" href="#Home"> Home</a> </li>
        <li> <a class="nav-link" href="#WhyUs"> Why Us</a> </li>
        <li> <a class="nav-link" href="#Showcase"> Showcase</a> </li>
        <li> <a class="nav-link" href="#Pricing"> Pricing</a> </li>
        <li> <a class="nav-link" href="#About"> About</a> </li>
      </ul>
    </nav>
    </header>
    <!--Home section of Webpage-->
  <section class="home" id="Home">
    <div class="webpageA">
      <div>
        <h1>Kings of Luxery Cars</h1>
        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque dolor urna, cursus id tempus id, convallis sed orci. Quisque varius quis elit a efficitur. Fusce vitae metus eu risus gravida tempus ac vitae elit. Aliquam faucibus lorem posuere, condimentum est quis, eleifend lacus.</p>
        <a href="#" class"button">Read more</a>
      </div>
      <img id="Photo1" src="https://cdn.pixabay.com/photo/2020/02/06/02/17/car-4822848_1280.jpg"
      </div>
    </section>
  <!--Why us section of webpage-->
    <section class="whyUs" id="WhyUs">
      <div class="ImageCover">
      <div class="webpageB">
        <h2>True definition of luxery.Yours.</h2>
        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque dolor urna, cursus id tempus id, convallis sed orci. Quisque varius quis elit a efficitur.</p>
        </div>
      </div>
    </section>
    <!--Showcase section of webpage-->
    <section class="showcase" id="Showcase">
      <div class="ImageCoverB">
      <div class="webpageC">
        <h3>Showroom Tour</h3>
        <div id="video">
        <iframe width="560" height="315" src="https://www.youtube.com/embed/0KHjKOxsmXU" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
      </div>
        </div> 
    </div>
    </section>
    <!--Pricing section of Webpage-->
    <section class="pricing" id="Pricing">
      <div class="ImageCoverC">
      <div class="webpageD">
        <div class="pricingBox">
          <h4>Classic Car</h4>
          <p class="price">$100,000,000</p>
          <p>lorem ipsum</p>
          <p>lorem ipsum</p>
          <p>lorem ipsum</p>
          <p>lorem ipsum dolor</p>
          <p>lorem ipsum</p>
          <a href="" class="bttn">Select</a>
        </div>
        <div class="pricingBox">
          <h4>Modern Car</h4>
          <p class="price">$250,000,000</p>
          <p>lorem ipsum</p>
          <p>lorem ipsum</p>
          <p>lorem ipsum</p>
          <p>lorem ipsum dolor</p>
          <p>lorem ipsum</p>
          <a href="" class="bttn">Select</a>
        </div>
        <div class="pricingBox">
          <h4>Futuristic Car</h4>
          <p class="price">$500,000,000</p>
          <p>lorem ipsum</p>
          <p>lorem ipsum</p>
          <p>lorem ipsum</p>
          <p>lorem ipsum dolor</p>
          <p>lorem ipsum</p>
          <a href="" class="bttn">Select</a>
        </div>
      </div>
      </div>
    </section>
    <!-- About section of Webpage-->
    <footer id="About">
      <div class="webpageE">
        <div>
          <h2>Lorem ipsum dolor sit.</h2>
        </div>
        <div>
          <h3>Company Information</h3>
          <ul>
            <li><a href="#">All Products</a></li>
            <li><a href="#">About Us</a></li>
            <li><a href="#">Privacy Policy</a></li>
            <li><a href="#">Terms of Service</a></li>
          </ul>
        </div>
        <div>
          <h3>Blog Posts</h3>
          <ul>
            <li><a href="#">Lorem ipsum dolor.</a></li>
            <li><a href="#">Lorem ipsum dolor.</a></li>
            <li><a href="#">Lorem ipsum dolor.</a></li>
            <li><a href="#">Lorem ipsum dolor.</a></li>
          </ul>
        </div>
        <div>
          <h3>Stay up to date</h3>
          <p>
            Lorem ipsum dolor sit amet consectetur adipisicing elit.
          </p>
          <form id="form" action="https://www.freecodecamp.com/email-submit">
            <div class="email-form">
      <input
        name="email"
        id="email"
        type="email"
        size="40"
        class-"form-control"    
        placeholder="E-mail"
        required
      />
      <input id="submit" type="submit" value="Subscribe" class="btn" />
                <i class="fas fa-chevron-right"></i>
     </button>
    </div>
    </form>
     </div>
        
     </div>
    </footer>
              
            
!

CSS

              
                :root{
 --primary-color: 	#2f2f2f;
  --secondary-color: 	#F5F5F5;
  --seethrough-color: rgb(0, 0, 0, 0.65);
  --seethrough-color2: rgb(255, 255, 255, 0.65);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body{
  font-family: 'Teko', sans-serif;
  font-size: 1em;
  line-height: 1.6;
}

h1, h2, h3, h4{
  line-height:1.3
}

a{
  color: #000000;
    text-decoration: none;
}

#header ul{
  list-style: none;
  display: flex;
  justify-content:space-around;
}

img{
  width: 100%;
}

#header-img{
  width: 100px;
}

#header{
  font-size: 1.6em;
  padding-top: 4px;
  padding-bottom: 4px;
  display: flex;
  align-items: center;
}

.NavBar{
  width: 100%;
}

.webpageA {
  max-width: 1100px;
  margin: auto;
  overflow: hidden;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 48px;
  align-items: center;
  justify-content: center;
  top: 100px
}

.home{
  margin: 32px 0;
}

.home h1{
  color: var(--primary-color);
  font-size: 80px;
}

.home p{
  margin:16px 0;
}

.home a{
  color: #FFFFFF;
  display: inline-block;
  background: var(--primary-color);
  padding: 13px 24px;
  border: none;
  cursor: pointer;
  font-size: 18px;
  border-radius: 30px;
}

.whyUs{
  position: relative;
  background: url(https://images.unsplash.com/photo-1574904735613-d27b0559232c?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1350&q=80) no-repeat bottom center/cover;
  height: 600px;;
}

.webpageB{
  max-width: 850px;
  margin: auto;
  overflow: hidden;
  padding: 80px 0;
  color: var(--secondary-color);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ImageCover{
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: var(--seethrough-color);
}

.webpageB h2{
  font-size: 120px;
  margin-top: 5px;
}

.webpageB p{
  font-size: 30px;
}

.showcase{
    position: relative;
  background: url(https://images.unsplash.com/photo-1503736334956-4c8f8e92946d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1267&q=80) no-repeat bottom center/cover;
  height: 600px;
}

.webpageC{
    max-width: 850px;
  margin: auto;
  overflow: hidden;
  padding: 80px 0;
  color: #2f2f2f;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ImageCoverB{
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: var(--seethrough-color2);
}

.webpageC h3{
  position:relative;
  font-size: 120px;
}

#video{
  margin-top: 40px;
}

.pricing{
      position: relative;
  background: url(https://wallpaperaccess.com/full/48831.jpg) no-repeat bottom center/cover;
  height: 600px;
}

.webpageD{
  display: grid;
  grid-gap: 32px;
  align-items: center;
  justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-auto-rows: repeat(3, 300px);
  padding-top: 100px;
  color: #F5F5F5
}

.ImageCoverC{
   position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgb(0, 0, 0, 0.65);
}

.pricingBox{
  text-align:center;
  line-height: 2.5;
  border: 1px solid #F5F5F5
}

.pricingBox h4{
  background:#000000;
  font-size: 40px;
}

.pricingBox .price{
  font-weight: bold;
  font-size: 30px
}

.pricingBox a{
   color: var(--primary-color);;
  display: block;
  background: var(--secondary-color);
 width:150px;
  margin: 16px auto;
  cursor: pointer;
  font-size: 16px;
  text-transform: uppercase;
  font-weight: bold;
}

#About{
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 64px 0;
}

.webpageE{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 16px;
}

.webpageE h2{
  font-size: 32px;
  margin-bottom: 16px;
  margin-left: 10px;
}

.webpageE h3{
  font-size: 25px;
  margin-left: 10px;
}

.webpageE ul{
  margin-left: 30px
}

.webpageE p{
  margin-left: 5px
}
              
            
!

JS

              
                
              
            
!
999px

Console