css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <html>
  <head>
    <meta charset="utf-8">
    <link rel="stylesheet" type="text/css" href="stylenav.css">
    <title>Navbar designing</title>
    <link rel="icon" href="favicon.ico" />
  	<meta name="viewport" content="width=device-width, initial-scale=1">
    <script>


    function display(a) {
      var b=["home","login","register","catlog"];
      for (var i = 0; i < b.length; i++) {
        document.getElementById(b[i]).style.display="none";
      }
      document.getElementById(a).style.display="block";

    };

	</script>
  </head>
  <body>
   <nav>
     <div class="heading">Online book Store </div>
     <ul>
        <li class="logo" > <img src="http://www.iconarchive.com/download/i58917/wwalczyszyn/android-style-honeycomb/Books.ico" width="50px"></li>
        <li> <a onclick="display('home')">Home</a> </li>
        <li> <a onclick="display('login')">Login</a> </li>
        <li> <a onclick="display('register')">Register</a> </li>
 <li class="dropdown_parent "> <a onclick="display('catlog')">Catlog</a>
        <div class="dropdown">
          <ul>
            <li> <a onclick="display('catlog'); loadD('catlog','book_box.php?c=cse','true'); ">CSE</a></li>
            <li> <a onclick="display('catlog'); loadD('catlog','book_box.php?c=ece','true');">ECE</a>  </li>
            <li> <a onclick="display('catlog'); loadD('catlog','book_box.php?c=mech','true');">MECH</a> </li>
          </ul>
        </div>
      </li>
        <li> <a href="">Cart</a> </li>
        
     </ul>
   </nav>
    <div id="home" class="navmargin">
   <p>This will be homepage soon</p>
 </div>
    <div id="login">
   <form class="forms" method="post" action="login_check.php">
   <div class="fo">

     <label>Login Id:<input type="email" name="loginid" placeholder="enter email"></label>

     <label>Password:<input type="password" name="key"></label>

     <div class="form_butons"><label><input type="reset" name="reset" ></label><label><input type="submit" name="Lsubmit" ></label></div>

  </div>
   </form>
 </div>
    <div id="register" class="navmargin">
   <p>This will be register soon</p>
 </div>
    <div id="catlog" class="navmargin">
   <div class="bcontainer">
      <div class="box">
       <div class="bimg">
         <img src="https://writingfish.files.wordpress.com/2012/08/red-book.png" class="" alt="html-css-book">
       </div>
       <div class="bdesc">
          <div class="btitle">
            <span>An Awesome Book</span>
          </div>
         <ul>
           <li><span>Author:</span>Some author</li>
           <li><span>Publisher:</span>publisher name</li>
           <li><span>Price:</span>1000</li>
           <form method="post" action="">
             <li>
               <input type="number" class="binput_box" name="quantity" value="1">
               <input type="submit" value="Add to cart" class="btnAddAction">
             </li>
           </form>
         </ul>
        </div>
      </div>
     
     <div class="box">
       <div class="bimg">
         <img src="https://writingfish.files.wordpress.com/2012/08/red-book.png" class="" alt="html-css-book">
       </div>
       <div class="bdesc">
          <div class="btitle">
            <span>An Awesome Book</span>
          </div>
         <ul>
           <li><span>Author:</span>Some author</li>
           <li><span>Publisher:</span>publisher name</li>
           <li><span>Price:</span>1000</li>
           <form method="post" action="">
             <li>
               <input type="number" class="binput_box" name="quantity" value="1">
               <input type="submit" value="Add to cart" class="btnAddAction">
             </li>
           </form>
         </ul>
        </div>
      </div>
     
     <div class="box">
       <div class="bimg">
         <img src="https://writingfish.files.wordpress.com/2012/08/red-book.png" class="" alt="html-css-book">
       </div>
       <div class="bdesc">
          <div class="btitle">
            <span>An Awesome Book</span>
          </div>
         <ul>
           <li><span>Author:</span>Some author</li>
           <li><span>Publisher:</span>publisher name</li>
           <li><span>Price:</span>1000</li>
           <form method="post" action="">
             <li>
               <input type="number" class="binput_box" name="quantity" value="1">
               <input type="submit" value="Add to cart" class="btnAddAction">
             </li>
           </form>
         </ul>
        </div>
      </div>
     
     <div class="box">
       <div class="bimg">
         <img src="https://writingfish.files.wordpress.com/2012/08/red-book.png" class="" alt="html-css-book">
       </div>
       <div class="bdesc">
          <div class="btitle">
            <span>An Awesome Book</span>
          </div>
         <ul>
           <li><span>Author:</span>Some author</li>
           <li><span>Publisher:</span>publisher name</li>
           <li><span>Price:</span>1000</li>
           <form method="post" action="">
             <li>
               <input type="number" class="binput_box" name="quantity" value="1">
               <input type="submit" value="Add to cart" class="btnAddAction">
             </li>
           </form>
         </ul>
        </div>
      </div>
     
     <div class="box">
       <div class="bimg">
         <img src="https://writingfish.files.wordpress.com/2012/08/red-book.png" class="" alt="html-css-book">
       </div>
       <div class="bdesc">
          <div class="btitle">
            <span>An Awesome Book</span>
          </div>
         <ul>
           <li><span>Author:</span>Some author</li>
           <li><span>Publisher:</span>publisher name</li>
           <li><span>Price:</span>1000</li>
           <form method="post" action="">
             <li>
               <input type="number" class="binput_box" name="quantity" value="1">
               <input type="submit" value="Add to cart" class="btnAddAction">
             </li>
           </form>
         </ul>
        </div>
      </div>
     
     <div class="box">
       <div class="bimg">
         <img src="https://writingfish.files.wordpress.com/2012/08/red-book.png" class="" alt="html-css-book">
       </div>
       <div class="bdesc">
          <div class="btitle">
            <span>An Awesome Book</span>
          </div>
         <ul>
           <li><span>Author:</span>Some author</li>
           <li><span>Publisher:</span>publisher name</li>
           <li><span>Price:</span>1000</li>
           <form method="post" action="">
             <li>
               <input type="number" class="binput_box" name="quantity" value="1">
               <input type="submit" value="Add to cart" class="btnAddAction">
             </li>
           </form>
         </ul>
        </div>
      </div>
     
     <div class="box">
       <div class="bimg">
         <img src="https://writingfish.files.wordpress.com/2012/08/red-book.png" class="" alt="html-css-book">
       </div>
       <div class="bdesc">
          <div class="btitle">
            <span>An Awesome Book</span>
          </div>
         <ul>
           <li><span>Author:</span>Some author</li>
           <li><span>Publisher:</span>publisher name</li>
           <li><span>Price:</span>1000</li>
           <form method="post" action="">
             <li>
               <input type="number" class="binput_box" name="quantity" value="1">
               <input type="submit" value="Add to cart" class="btnAddAction">
             </li>
           </form>
         </ul>
        </div>
      </div>
      
      <div class="box">
       <div class="bimg">
         <img src="https://writingfish.files.wordpress.com/2012/08/red-book.png" class="" alt="html-css-book">
       </div>
       <div class="bdesc">
          <div class="btitle">
            <span>An Awesome Book</span>
          </div>
         <ul>
           <li><span>Author:</span>Some author</li>
           <li><span>Publisher:</span>publisher name</li>
           <li><span>Price:</span>1000</li>
           <form method="post" action="">
             <li>
               <input type="number" class="binput_box" name="quantity" value="1">
               <input type="submit" value="Add to cart" class="btnAddAction">
             </li>
           </form>
         </ul>
        </div>
      </div>
      
      <div class="box">
       <div class="bimg">
         <img src="https://writingfish.files.wordpress.com/2012/08/red-book.png" class="" alt="html-css-book">
       </div>
       <div class="bdesc">
          <div class="btitle">
            <span>An Awesome Book</span>
          </div>
         <ul>
           <li><span>Author:</span>Some author</li>
           <li><span>Publisher:</span>publisher name</li>
           <li><span>Price:</span>1000</li>
           <form method="post" action="">
             <li>
               <input type="number" class="binput_box" name="quantity" value="1">
               <input type="submit" value="Add to cart" class="btnAddAction">
             </li>
           </form>
         </ul>
        </div>
      </div>
      
      <div class="box">
       <div class="bimg">
         <img src="https://writingfish.files.wordpress.com/2012/08/red-book.png" class="" alt="html-css-book">
       </div>
       <div class="bdesc">
          <div class="btitle">
            <span>An Awesome Book</span>
          </div>
         <ul>
           <li><span>Author:</span>Some author</li>
           <li><span>Publisher:</span>publisher name</li>
           <li><span>Price:</span>1000</li>
           <form method="post" action="">
             <li>
               <input type="number" class="binput_box" name="quantity" value="1">
               <input type="submit" value="Add to cart" class="btnAddAction">
             </li>
           </form>
         </ul>
        </div>
      </div>
      
      <div class="box">
       <div class="bimg">
         <img src="https://writingfish.files.wordpress.com/2012/08/red-book.png" class="" alt="html-css-book">
       </div>
       <div class="bdesc">
          <div class="btitle">
            <span>An Awesome Book</span>
          </div>
         <ul>
           <li><span>Author:</span>Some author</li>
           <li><span>Publisher:</span>publisher name</li>
           <li><span>Price:</span>1000</li>
           <form method="post" action="">
             <li>
               <input type="number" class="binput_box" name="quantity" value="1">
               <input type="submit" value="Add to cart" class="btnAddAction">
             </li>
           </form>
         </ul>
        </div>
      </div>
      
      <div class="box">
       <div class="bimg">
         <img src="https://writingfish.files.wordpress.com/2012/08/red-book.png" class="" alt="html-css-book">
       </div>
       <div class="bdesc">
          <div class="btitle">
            <span>An Awesome Book</span>
          </div>
         <ul>
           <li><span>Author:</span>Some author</li>
           <li><span>Publisher:</span>publisher name</li>
           <li><span>Price:</span>1000</li>
           <form method="post" action="">
             <li>
               <input type="number" class="binput_box" name="quantity" value="1">
               <input type="submit" value="Add to cart" class="btnAddAction">
             </li>
           </form>
         </ul>
        </div>
      </div>
      
      <div class="box">
       <div class="bimg">
         <img src="https://writingfish.files.wordpress.com/2012/08/red-book.png" class="" alt="html-css-book">
       </div>
       <div class="bdesc">
          <div class="btitle">
            <span>An Awesome Book</span>
          </div>
         <ul>
           <li><span>Author:</span>Some author</li>
           <li><span>Publisher:</span>publisher name</li>
           <li><span>Price:</span>1000</li>
           <form method="post" action="">
             <li>
               <input type="number" class="binput_box" name="quantity" value="1">
               <input type="submit" value="Add to cart" class="btnAddAction">
             </li>
           </form>
         </ul>
        </div>
      </div>
      
      <div class="box">
       <div class="bimg">
         <img src="https://writingfish.files.wordpress.com/2012/08/red-book.png" class="" alt="html-css-book">
       </div>
       <div class="bdesc">
          <div class="btitle">
            <span>An Awesome Book</span>
          </div>
         <ul>
           <li><span>Author:</span>Some author</li>
           <li><span>Publisher:</span>publisher name</li>
           <li><span>Price:</span>1000</li>
           <form method="post" action="">
             <li>
               <input type="number" class="binput_box" name="quantity" value="1">
               <input type="submit" value="Add to cart" class="btnAddAction">
             </li>
           </form>
         </ul>
        </div>
      </div>
      
      <div class="box">
       <div class="bimg">
         <img src="https://writingfish.files.wordpress.com/2012/08/red-book.png" class="" alt="html-css-book">
       </div>
       <div class="bdesc">
          <div class="btitle">
            <span>An Awesome Book</span>
          </div>
         <ul>
           <li><span>Author:</span>Some author</li>
           <li><span>Publisher:</span>publisher name</li>
           <li><span>Price:</span>1000</li>
           <form method="post" action="">
             <li>
               <input type="number" class="binput_box" name="quantity" value="1">
               <input type="submit" value="Add to cart" class="btnAddAction">
             </li>
           </form>
         </ul>
        </div>
      </div>
     
    </div>
     
      
      
 </div>
  </body>
</html>

            
          
!
            
              /* navbar design */

nav {
	position: fixed;
    top:-1px;
  width:100%;
}
nav > ul{
	display:flex;
	justify-content:flex-end;
	align-items: flex-end;
	padding: 0;

	list-style: none;
	height: 100%;

}

.navmargin{
  margin-top:90px;
}

nav ul li{
	color:white;
	cursor:pointer;
	font-size: 17px;
  font-weight: 900;
}
nav ul li a{
	padding: 10px;
	display: block;
	color: inherit;
	text-decoration: none;
}

}
a{
	color: inherit;
	text-decoration: none;
}
nav li:hover {
	border-radius: 15px 3px;
	background-color: #614e1b;
}
.dropdown{
	display: none;
	position: absolute;
	top: 100%;
}
/* .dropdown ul li{
	padding: 0px;
}
.dropdown ul a{
	display: block;
	padding: 10px;
} */

.heading{
	text-align: center;
	font-weight: bold;
	color: white;
	font-size: 30px;
	align-self:center;

}
.dropdown_parent:hover .dropdown{
	display: block;
  width:100%;
  left:0px;
	background-color: #DCD9D4;
  background-image: linear-gradient(to bottom, rgba(255,255,255,0.50) 0%, rgba(0,0,0,0.50) 100%), radial-gradient(at 50% 0%, rgba(255,255,255,0.10) 0%, rgba(0,0,0,0.50) 50%);
  background-blend-mode: soft-light,screen;
	box-shadow: 2px 3px 8px 0px #b3b5bb;
}
.dropdown ul {
	padding: 0px;
	list-style: none;
}

.dropdown_parent{
	position: relative;
}
.logo{
	top: 15px;
    left: 10px;
    position: fixed;
  margin-right: auto;
  margin-bottom: 5px;
}
html, body {
	height:100%;
	margin: 0;
	box-sizing: border-box;

}

nav{
	display: flex;
	flex-direction: column;
	height: 12%;
	min-height: 70px;
	box-shadow: 0px 2px 8px 0px #6d79a0;
	background-color: #f9b90e;
}
* {
	margin: 0;
}
html{
	display: flex;
	flex-flow: column;

}

/* book box styling */


.bcontainer{
  display:flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  height: 100%;

}
.box{
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  background-color: white;
  width:200px;
  height: fit-content;
  border: 1px solid #ededed;
  border-radius: 4px;
  padding:6px;
  margin: 10px;
  box-shadow: 0px 0px 5px;
  height: 350px;
  animation-name:slidein;
  animation-duration:1s;
}
.bimg{
 min-width: 100%;
}
.bimg img {
  display: block;
    margin: 0 auto;
    max-width:150px;
    min-height: 100%;
    /* max-height:300px;  */
}
.btitle{
  margin: 2px 0px 2px 0px;
  font-weight:700;
  font-size: 18px;
  color:#062bb0;
}
.bdesc ul{
  padding:unset;
  padding-left:10px;
  list-style:none;
}
.bdesc ul li span{
  font-weight: 600;
}
.binput_box {
 width: 40px;
 margin-right: 2px;
}

/* adding margin  */
.navmargin{
  margin-top:70px;
}
/* login styling */
.fo {
	 border: 2px solid #4d90fe;
	display: flex;
	flex-flow: column wrap;
	align-items: center;
  justify-content: space-evenly;
	box-shadow: 0px 0px 13px 0px #f9b90e;
	background-color: #fffcf3;
	border-radius: 5px;
	width: 300px;
	height: 360px;
}
.fo:hover{
	box-shadow: 0px 0px 15px 2px #f9b90e;
}
#login .fo > label{
  font-size: 20px;
}
#login .fo > label > input{
	padding: 0.5em;
}
#login .form_butons >input {
	margin: 0px 10px 0px 10px;
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console