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>
<head>
    <title></title>
	<meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />

   <style>
      @import url('https://fonts.googleapis.com/css2?family=Josefin+Sans&family=Lobster+Two&display=swap');
   </style>
  
</head>
<body>
    <section>
        <!-- This is Section 1 of the page -->
        <div class="section1">
            <img src="https://i.ibb.co/t3600t5/Website-Logo.png" class="logo" />
            <div class="navigation">
                <img src="https://i.ibb.co/r4cswFK/if-List-Text-Menu-Numbers-String-Burger-1329080.png" class="toggle" />
                <a class="cgr" >Categories</a>
            </div>
            <div>
                <a class="submenu" >Sound devices</a>
                <a class="submenu">Video game consoles</a>
                <a class="submenu">Cell/Mobile/Wireless phones</a>
                <a class="submenu">Home security system</a>
                <a class="submenu">Cameras</a>
                <a class="submenu">Home theater system</a>
                <a class="submenu">TVs</a>
                <a class="submenu">Computers</a>
                <a class="submenu">Games/Movies/Music</a>
                <a class="submenu">Accessories</a>
                <a class="submenu">Office</a>
                <a class="submenu">Home appliances</a>
            </div>

            <p class="para1">Specials</p>
            <div class="Special">

                <fieldset>
                    <legend>Sale</legend>
                    <div class="div1">
                        <img src="https://i.ibb.co/PWqZg05/Philips-Trimmers.png" class="img1" />
                    </div>
                    <div class="div2">
                        <h3>$24.34<strike>$25.63</strike></h3>
                        <p>Philips QT4000 Experience Men's Stubble Trimmer 44DJH62</p>
                    </div>
                </fieldset>

                <fieldset>
                    <legend>Sale</legend>
                    <div class="div1">
                        <img src="https://i.ibb.co/98vwjMh/y37-high-figure.png" class="img1" />
                    </div>
                    <div class="div2">
                        <h3>$399<strike>$402.30</strike></h3>
                        <p>vivo Xshot 5.2 inch 4G Android 4.2 Quad Core 2.3GHz RAM 2GB ROM 16GB</p>
                    </div>
                </fieldset>

                <fieldset>
                    <legend>Sale</legend>
                    <div class="div1">
                        <img src="https://i.ibb.co/wp04GvN/cruzer-force-usb-flash-drive-250x250.png" class="img1" />
                    </div>
                    <div class="div2">
                        <h3>$16<strike>$18</strike></h3>
                        <p>SanDisk Cruzer Force 64 GB USB Flash Drive USB 2.0</p>
                    </div>
                </fieldset>

                <fieldset>
                    <legend>Sale</legend>
                    <div class="div1">
                        <img src="https://i.ibb.co/JBgd1RQ/Canon-EF-24-105mm-f-4-L-IS-II-USM-Side-tcm14-1451451.png" class="img1" />
                    </div>
                    <div class="div2">
                        <h3>$133.89<strike>$134.16</strike></h3>
                        <p>Canon EF 75-300mm f/4.0-5.6 III Lens</p>
                    </div>
                </fieldset>

                <fieldset>
                    <legend>Sale</legend>
                    <div class="div1">
                        <img src="https://i.ibb.co/1RBvb64/bag2.png" alt="bag2" class="img1" />
                    </div>
                    <div class="div2">
                        <h3>$14.92<strike></strike></h3>
                        <p>PZJ® Galaxy Backpack, Unisex Galaxy Pattern Canvas</p>
                    </div>
                </fieldset>

                <fieldset>
                    <legend>Sale</legend>
                    <div class="div1">
                        <img src="https://i.ibb.co/r0c0ZWr/images.jpg" class="img1" />
                    </div>
                    <div class="div2">
                        <h3>$1.89<strike>$2</strike></h3>
                        <p>The Mistake: An unputdownable psychological thriller with a brilliant twist</p>
                    </div>
                </fieldset>

                <fieldset>
                    <legend>Sale</legend>
                    <div class="div1">
                        <img src="https://i.ibb.co/vdJsfxn/Hand-Blender-Mixer-PNG-Image1.png" class="img1" />
                    </div>
                    <div class="div2">
                        <h3>$8.49<strike>$9</strike></h3>
                        <p>Elgento E12009 Hand Blender, 170 W - White</p>
                    </div>
                </fieldset>
            </div>



        </div>



        <!-- This is section 2 of the page -->
        <div class="section2">
            <input type="text" placeholder="search" class="txtsrch" /><button type="button" class="btnsrch">Search</button>

            <img src="https://i.ibb.co/9yyFLLw/if-call-322424.png" class="call-icon" />
            <span class="tel-no">777-7777-7777</span>


            <nav>
                <a class="menuitem" >Home</a>
                <a class="menuitem">Wish list(0)</a>
                <a class="menuitem">My Account</a>
                <a class="menuitem">Shopping Cart</a>
                <a class="menuitem">Checkout</a>
                <a class="menuitem">items(s)</a>
            </nav>

            <div class="slider">
                <div class="slides">
                    <div class="slide1">
                        <img src="https://i.ibb.co/xDy25Z5/4-2-iphone-png-picture-png-image.png" class="img1" />
                    </div>
                    <div class="slide1">
                        <img src="https://i.ibb.co/mDnywZG/2-2-iphone-png-picture.png"  class="img2" />
                    <div class="slide1">
                        <img src="https://i.ibb.co/TYd7jPF/1-2-iphone-png-picture-png-clipart.png"  class="img3" />
                    </div>
                    <div class="constant">
                        <h1>iPhone 7</h1>
                        <p>Comfort is a very important things nowadays because it is a condition of satifaction.</p>

                        <a class="btnshopnow">Shop Now!</a>
                    </div>
                </div>
            </div>


            <div class="content1">
                <div class="innertitle1">
                    <h3>Home Theater & TV</h3>
                    <p class="para1">Comfort is a very important things nowadays because it is a condition of satifaction.</p>
                    <br />
                    <p class="para1">Shop Now!</p>
                </div>

                <div class="innertitle2">
                    <h3>Home Appliances</h3>
                    <p class="para1">Comfort is a very important things nowadays because it is a condition of satifaction.</p>
                    <br />
                    <p class="para1">Shop Now!</p>
                </div>

                <div class="inner1">
                    <img src="https://i.ibb.co/6vcgZZw/Home-Theaters.png" class="img1" />
                </div>
                <div class="inner2">
                    <img src="https://i.ibb.co/NSngfCw/Black-Vacuum-Cleaner-PNG-Clipart-629.png" class="img2" />
                </div>
            </div>

            <p class="featuredpara">Latest</p>

            <div class="products">
                <fieldset class="col1">
                    <legend>New</legend>
                    <img src="https://i.ibb.co/qd99d0p/Laptop.png" class="img1" />
                    <h3>$184.78<strike>$192.45</strike></h3>
                    <h4>Apple MacBook Pro 13-inch Laptop (Intel Dual-Core i5 2.4 GHz, 4 GB RAM, 500 GB HDD, Intel HD, OS X) - Silver - 2011</h4>
                    <p>Fastest dual-core processor available Thunderbolt technology FaceTime HD camera Long lasting battery...</p>
                </fieldset>

                <fieldset class="col2">
                    <legend>New</legend>
                    <img src="https://i.ibb.co/rMT4pPh/Canon-Camera.png" class="img1" />
                    <h3>$636.21<strike>$642.45</strike></h3>
                    <h4>Canon EOS 200D Digital SLR Camera with EF-S 18 - 55 mm f/4-5.6 IS</h4>
                    <p>24.2 megapixel CMOS sensor for photos rich with detail and colour and look straight from the camera. Continuous shooting at up to 5 FTP...</p>
                </fieldset>

                <fieldset class="col3" >
                    <legend>New</legend>
                    <img src="https://i.ibb.co/j5dkjv0/38-Printers.png" class="img1" />
                    <h3>$49.41<strike>$50.31</strike></h3>
                    <h4>HP Envy 4527 All-in-One Printer, Instant Ink Compatible with 4 Months Trial</h4>
                    <p>Print, scan or copy quickly and easily with the 2.2 inch (5.5 cm) display - simply touch and go...</p>
                </fieldset>
            </div>


            <p class="featuredpara">Featured</p>

            <div class="products">
                <fieldset class="col1">
                    <legend>Hot Deal</legend>
                    <img src="https://i.ibb.co/5W178br/1-VR.png" class="img1" />
                    <h3>$29.99<strike>$31.34</strike></h3>
                    <h4>DESTEK V4 VR Headset, 103° FOV, Eye Protected HD Virtual Reality Headset w/ Touch Button/Trigger for iPhone</h4>
                    <p>Put on the Gear VR and go from front-row experiences to adventures you've only dreamt of...</p>
                </fieldset>

                <fieldset class="col2">
                    <legend>Hot Deal</legend>
                    <img src="https://i.ibb.co/N9TF0P2/434-Refrigerator.png" class="img1" />
                    <h3>$1042.97<strike>$1049.93</strike></h3>
                    <h4>Samsung RS7567BHCSL H-series Side by Side Fridge Freezer With Ice And Water Dispenser Inox Steel Doors</h4>
                    <p>Special delivery for large items is available for this item, when sold and dispatched by Amazon...</p>
                </fieldset>

                <fieldset class="col3">
                    <legend>Hot Deal</legend>
                    <img src="https://i.ibb.co/VM7cRRF/3-Iron.png" class="img1" />
                    <h3>$28.71<strike>$35.31</strike></h3>
                    <h4>Russell Hobbs Steamglide Professional 2600 W Steam Iron 21370 - Blue and Black</h4>
                    <p>2600 watts gives you a fast heat-up time and more power for performance in your battle against the creases...</p>
                </fieldset>
            </div>

            <div class="products" style="margin-top:3vh;">
                <fieldset class="col1">
                    <legend>Hot Deal</legend>
                    <img src="https://i.ibb.co/ySW9ZmF/83-Spekers.png" class="img1" />
                    <h3>$120.45<strike>$122.47</strike></h3>
                    <h4>LG LOUDR LHB645N Home Theatre Speaker System - Black</h4>
                    <p>5.1Ch 1000W System - Immerse yourself with a 5.1 Ch. surround sound speaker system combined with 1000W of room filling sound, which brings to life all of your favourite movies, music, soaps and shows...</p>
                </fieldset>

                <fieldset class="col2">
                    <legend>Hot Deal</legend>
                    <img src="https://i.ibb.co/hM0Jgs3/53-Drone.png" class="img1" />
                    <h3>$449.12<strike>$559.23</strike></h3>
                    <h4>DJI CP.PT.000167 Phantom 3 Standard Drone</h4>
                    <p>stunning 2.7K HD videos and 12 Megapixel photos with the integrated aerial camera. Stable Footage...</p>
                </fieldset>

                <fieldset class="col3">
                    <legend>Hot Deal</legend>
                    <img src="https://i.ibb.co/98ZdWXb/6-video-camera-png-image.png" class="img1" />
                    <h3>$239.59<strike>$259.81</strike></h3>
                    <h4>Sony HDR-PJ410 Full HD Camcorder with Built-In Projector (30x Optical Zoom, Optical SteadyShot, Wi-Fi and NFC</h4>
                    <p>Keep your footage steady and reduce image blur with Sony's Optical SteadyShot...</p>
                </fieldset>
            </div>


        </div>
    </section>

    <div class="background"></div>

    <div class="footer">

        <div class="outer">
            <div class="inner">
                <h4>Information</h4>
                <a>About</a>
                <a>Delivery Information</a>
                <a>Privacy Policy</a>
                <a>Tearm & Condition</a>
            </div>
            <div class="inner2">
                <h4>Costomer Information</h4>
                <a>Contact Us</a>
                <a>Return</a>
                <a>Site Map</a>
            </div>
            <div class="inner">
                <h4>My Account</h4>
                <a>Order History</a>
                <a>Wish list</a>
                <a>News Latter</a>
            </div>
            <div class="inner2">
                <h4>Follow Us</h4>
                <a>Facebook</a>
                <a>Twitter</a>
                <a>Google +</a>
                <a>Youtube</a>
            </div>
        </div>

        <hr />
        <div class="copyright">
            <span>Powered by Daily Tuition © 2017</span>
        </div>

    </div>

    <script>

        var $slides = $('.slides');
        var $slide = $('.slide1');
        var count = 1;

        $(document).ready(function () {

            setInterval(function () {

                $slides.animate({ 'margin-left': '-=68vw' }, 1200, function () {

                    count++;
                    if (count === 4) {
                        $slides.css("margin-left", 0);
                        count = 1;
                    }

                });
            }, 4000);
        });

    </script>
</body>
</html>
              
            
!

CSS

              
                *{
    margin:0;
    padding:0;
    font-family:'Josefin Sans' , sans-serif;
}

section{
    display:flex;
    position:absolute;
    z-index:4;
}

/* Section 1 */

.section1{
    width:27vw;
    margin-right:2%;
    margin-left:5%;
}

.logo{
    width:23vw;
    height:20vh;
}

.navigation{
    margin-top:2vh;
    width:100%;
    height:7vh;
    background-color:#19e5e5;
    border-radius:6px;
    display:flex;
    align-items:center;
}

.toggle{
    height:5vh;
    width:2vw;
    margin-left:3%;
}
.cgr{
    margin-left:3%;
}

.submenu{
    background-color:#ececfa;
    display:block;
    padding:4% 4%;
    border-bottom:1px solid #a7a7ad;
    padding-left:4%;
}

.submenu:hover{
    cursor:pointer;
    background-color:#ffffff;
}

.section1 .para1{
    padding:4% 4%;
    background-color:#ececfa;
    margin-top:10%;
    margin-bottom:2%;
}

.section1 .Special fieldset{
    background-color:#ececfa;
    border:1px solid #afafaf;
    margin-top:10%;
    height:23vh;
}

.section1 .Special .img1{
    width:5vw;
    height:17vh;
    padding-top:7%;
    padding-left:3%;
}

.section1 .Special .div1{
    display:inline-block;
    margin-left:5%;
}

.section1 .Special .div2{
    position:absolute;
    display:inline-block;
    margin-left:1%;
    width:10%;
    height:15%;
}

.Special h3{
    margin-bottom:2%;
    margin-top:7%;
    color:#04bfbf;
}
.Special strike{
    font-size:1vw;
    padding-left:4%;
}

.section1 .Special fieldset:nth-child(2) .img1{
    height:18vh;
    width:6vw;
    padding-left:3%;
}

.section1 .Special fieldset:nth-child(3) .img1{
    height:14vh;
    width:5vw;
    padding-left:3%;
}

.section1 .Special fieldset:nth-child(4) .img1{
    height:12vh;
    width:5vw;
}

.background{
    position:absolute;
    right:0;left:0;bottom:0;top:0;
    z-index:2;
    width:100vw;
    height:30vh;
    background-color:#ececfa;
}

/* ********* */


/* Section 2 */

.section2{
    width:68vw;
    display:inline-block;
}

.txtsrch{
    margin-left:18%;
    margin-top:5%;
    width:23vw;
    height:5vh;
    border:1px ridge #d5d5e6;
}

.txtsrch[placeholder]{
    padding-left:1%;
}

.btnsrch{
    width:5vw;
    height:5vh;
    background-color:#19e5e5;
    border:0px;
}

.call-icon{
    height:4.5vh;
    margin-left:12%;

}

.tel-no{
    font-size:1.5vw;
    font-family:fantasy;
}

nav{
    margin-top:10vh;
    width:100%;
    height:2%;
    background-color:white;
    border-radius:6px;
    display:flex;
    justify-content:center;
    align-items:center;
}

.menuitem{
    margin-top:1vh;
    padding:3% 3% 3% 3%;
    text-decoration:none;
    background-color:black;
    color:white;
    font-family:'Lobster Two';
    font-size:1.5vw;
    box-shadow:10px 15px 50px black;
}

.menuitem:hover{
    background-color:#1d9550;
    box-shadow:none;
}

.slider
{
    background-color:#ececfa;
    width:68vw;
    height:52vh;
    overflow:hidden;
    margin-top:7vh;
}

.slider .slides{
    width:200vw;
    height:52vh;
    display:flex;
}

.slide1{
    width:68vw;
    height:52vh;
}

.slide1 .img1{
    width:33vw;
    height:38vh;
    display:inline-block;
    margin-top:4%;
}
.slide1 .img2{
    width:38vw;
    height:50vh;
}
.slide1 .img3{
    width:38vw;
    height:52vh;
}

.constant{
    position:absolute;
    width:26vw;
    height:52vh;
    margin-left:36vw;
}
.constant h1{
    margin-top:10vh;
    color:#19e5e5;
}
.constant p{
    font-family:'Pacifico';
    margin-top:3vh;
    margin-bottom:3vh;
}

.constant .btnshopnow{
    padding:4%;
    color:white;
    background-color:#313030;
    border-radius:10px;
}

.content1{
    width:100%;
    height:30vh;
    margin-top:5vh;
    display:flex;
}

.content1 .inner1{
    width:50%;
    height:100%;
    text-align:right;
    border:1px solid #afafaf;
}
.content1 .inner1 .img1{
    width:20vw;
    height:35vh;
}
.content1 .inner2{
    width:50%;
    height:100%;
    text-align:right;
    border:1px solid #afafaf;
    border-left:none;
}

.content1 .inner2 .img2{
    width:15vw;
    height:35vh;
}

.innertitle1{
    position:absolute;
    width:16vw;
    height:30%;
    text-align:center;
    margin-left:1%;
}
.innertitle2{
    position:absolute;
    width:20vw;
    height:30%;
    margin-left:38%;
    text-align:center;
}

.innertitle1 , .innertitle2{
    margin-top:2%;
}

.content1 h3{
    color:#04bfbf;
}
.content1 .para1{
    font-family:'Pacifico';
}

.featuredpara{
    margin-top:7vh;
    margin-bottom:3vh;
    padding:2vh 66vw 1vw 4vh;
    background-color:#ececfa;
}

.products{
    width:68vw;
    height:58vh;
    display:flex;
}

.products fieldset{
    width:20vw;
    padding-left:2vw;
    padding-right:2vw;
    padding-top:4vh;
    border:1px solid #afafaf;
}

legend{
    padding:2% 2% 1% 2%;
    background-color:black;
    color:white;
}

.products .col1 , .col2 {
    margin-right:1vw;
}

.products .col1 .img1{
    width:17vw;
    height:20vh;
}
.products .col2 .img1{
    width:11vw;
    height:20vh;
    padding-left:14%;
}

.products .col3 .img1{
    width:13vw;
    height:20vh;
    padding-left:5%;
}

.products h3{
    padding-top:5vh;
    color:#04bfbf;
}
.products strike{
    font-size:1vw;
    padding-left:3%;
}

.footer{
    bottom:0px;
    width:100vw;
    height:30vh;
    padding-top:166%;
}

.footer .outer{
    background-color:#ececfa;
    width:100vw;
    height:40vh;
    display:flex;
    align-items:center;
}

.footer .inner{
    width:20%;
    height:50%;
    display:inline-block;
    margin-left:8%;
    border-right:1px solid #afafaf;
}

.footer .inner2{
    width:20%;
    height:50%;
    display:inline-block;
    margin-left:3%;
    border-right:1px solid #afafaf;

}

.footer a{
    display:block;
    padding:2%;
    color:#04bfbf;
}

.footer .copyright{
    background-color:#ececfa;
}

.footer .copyright span{
    margin-left:8vw;
}

              
            
!

JS

              
                
              
            
!
999px

Console