Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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

              
                <!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="index.css">
    <title>Masha Foods Official Website</title>
</head>
<body>
    <header>
        <div class="logo">
            <img src="https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Ftse3.mm.bing.net%2Fth%3Fid%3DOIP.jd0M3tFzB687NmRWe6gNjAHaHa%26pid%3DApi&f=1" alt="logo">
        </div>
        <nav>
            <a href="">Home</a>
            <a href="">About</a>
            <a href="">Reviews</a>
        </nav>
        <div class="banner">
            <img src="https://images.unsplash.com/photo-1606836576983-8b458e75221d?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1170&q=80" alt="banner">
        </div>
    </header>

    <div class="welcome">
        <h4>Welcome to</h4>
        <h1>masha foods</h1>
        <p class="welcome-text">Lorem ipsum dolor, sit amet consectetur adipisicing elit. Laudantium ipsum quam aliquam magnam molestias vel, nostrum harum repellendus autem repudiandae, illum distinctio, odit esse officia impedit cumque. Blanditiis, illo tenetur!</p>
    </div>
    <section>
        <div class="right">
            <img src="https://images.unsplash.com/photo-1460306855393-0410f61241c7?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1173&q=80" alt="">
        </div>
        <div class="left">
            <h2>DINE WITH US</h2>
            <p>We have listened to you and here we are. Our local foods on our menu today right here.We won’t hesitate giving you what you deserve at our restaurant.</p>   
            <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Rerum sunt qui soluta molestiae ea sed minima sapiente quos amet neque.</p>
        </div>
    </section>
    <section>
        <div class="left">
            <h2>WE DO DELIVERY</h2>
            <p>We have listened to you and here we are. Our local foods on our menu today right here.We won’t hesitate giving you what you deserve at our restaurant.</p>
            <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Rerum sunt qui soluta molestiae ea sed minima sapiente quos amet neque.</p>
        </div>
        <div class="right">
            <img src="https://images.unsplash.com/photo-1512485800893-b08ec1ea59b1?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1170&q=80" alt="">
        </div> 
    </section>

    <div class="title">
        <h2>OUR FEATURED MENU</h2>
    </div>

    <div class="main-menu">
        <div class="menu">
            <div class="menu-item">
                <img src="https://images.unsplash.com/photo-1498601566872-21706d8e6fdf?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1171&q=80" alt="">
            </div>
            <div class="menu-item">
                <img src="https://images.unsplash.com/photo-1642574551546-c71ccd2e37f6?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1170&q=80" alt="">
            </div>
            <div class="menu-item">
                <img src="https://images.unsplash.com/photo-1620374645366-9e2aea59e4c1?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1170&q=80" alt="">
            </div>
        </div>
    </div>
    
    <section>
        <div class="form">
            <h2>Leave a Rewiew</h2>
            <form action="">
                <input type="text" name="" placeholder="Your Name">
                <input type="email" name="" placeholder="Your Email">
                <textarea name="" id="" cols="20" rows="10" placeholder="Your Review" maxlength="200"></textarea>
                <button>Submit</button>
            </form>
        </div>
        <div class="reviews">
            <h2>Reviews</h2>
            <div class="review-item">
                <h4>John Doe</h4>
                <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Cum dignissimos iusto sapiente cumque voluptatem in et distinctio vero excepturi nam!</p>
            </div>
            <div class="review-item">
                <h4>Joan Smith</h4>
                <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Cum dignissimos iusto sapiente cumque voluptatem in et distinctio vero excepturi nam!</p>
            </div>
            <div class="review-item">
                <h4>Sam Karitus</h4>
                <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Cum dignissimos iusto sapiente cumque voluptatem in et distinctio vero excepturi nam!</p>
            </div>
        </div>
    </section>

    <footer>
        <div>
            <h3>Contact Details</h3>
            <p>Visit us in Bugoloobi or call +2564321230 for inquiries, orders or deliveries.</p>
        </div>
        <div>&copy; Copyright Reserved | Masha Foods Uganda.</div>
    </footer>
    
</body>
</html>
              
            
!

CSS

              
                * {
  margin: 0 auto;
  box-sizing: border-box;
  font-family: "Century Gothic";
  line-height: 1.5;
}

header,
.title,
.main-menu,
footer {
  background-color: #fbf3e1;
}

.logo,
nav,
.title,
footer {
  width: 100%;
  text-align: center;
}

.logo {
  background: #fff;
}

.logo img {
  height: 200px;
  width: 300px;
}

nav {
  margin: 20px 0;
}

nav a {
  padding: 10px;
  text-decoration: none;
}

img,
section {
  width: 100%;
}

.logo img {
  width: auto;
}

.welcome {
  background-color: #232380;
  text-align: center;
  padding: 50px;
  margin-top: -20px;
  color: white;
}

.welcome h1,
.welcome h4 {
  text-transform: uppercase;
  letter-spacing: 2px;
}

.welcome-text {
  width: 70%;
  letter-spacing: 1px;
  margin-top: 10px;
}

section {
  display: flex;
  width: 80%;
  margin: 50px auto;
  flex-wrap: wrap;
}

.left,
.right {
  width: 50%;
  padding: 0 25px;
}

.left {
  text-align: center;
  margin: 50px 0;
}

.left p {
  margin: 40px 0;
}

.menu {
  display: flex;
  width: 90%;
  flex-wrap: wrap;
}

.title,
footer {
  padding: 40px 20px;
}

.menu-item {
  justify-content: space-evenly;
  width: 30%;
  padding-bottom: 60px;
}

.menu-item img {
  border-radius: 15px;
}

form,
input,
textarea,
button {
  width: 100%;
  margin-bottom: 10px;
  display: block;
  padding: 5px;
}

button {
  width: 20%;
  float: left;
}

button:hover {
  background-color: #232380;
  color: white;
  transition: all 0.1s linear 0.1s;
}

form {
  padding: 20px 20px 20px 0;
}

.form,
.reviews {
  width: 50%;
}

.reviews h2 {
  padding-bottom: 20px;
}

.review-item {
  margin-bottom: 20px;
  border-bottom: dashed 1px orange;
  padding-bottom: 5px;
}

.reviews h4 {
  margin-bottom: 10px;
}

.feedback {
  text-align: center;
  background-color: lightgreen;
  margin: 50px;
}

/* Responsiveness */
@media (max-width: 980px) {
  .left {
    margin: 0 auto;
  }

  .left p {
    margin: 10px 0;
  }

  .review-item:last-child {
    display: none;
  }
}

@media (min-width: 980px) {
  .banner img {
    height: 600px;
  }
}

@media (max-width: 700px) {
  .welcome-text,
  section,
  .left,
  .right,
  .menu-item {
    width: 100%;
    letter-spacing: 0;
  }

  .form,
  .reviews {
    width: 90%;
  }

  form {
    padding: 20px 0;
  }

  .reviews h2 {
    margin-top: 50px;
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console