cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

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.

            
               <nav class="site">
    <img src="http://cdn.onlinewebfonts.com/svg/img_44448.png" alt="" id="image" >
	 	<span class="header"></span> <h2>Q & A</h2>
    <div id="search">
      <input type="text" placeholder="Search Apple  Q & A" id="placeholder">
    </div>
    <div> 
			<a href="#"><i class="fas fa-home"></i></a>
			<a href="#"><i class="fas fa-fire"></i></a>
			<span></span>
			<a href="#"><i class="fas fa-heart"></i></a>
      <a href="#"><i class="fa fa-bookmark-o"></i></a>    
			<a href="#"><i class="fa fa-bell-o"></i></a>  
      <a href="#"><i class="fa fa-user-o"></i></a>  
			<a href="#"><i class="fa fa-shopping-bag"></i></a>  
    </div>
  </nav>



            
          
!
            
              * {
	font-weight: 300;
	letter-spacing: 1px;
	font-family: 'Comfortaa', cursive;
}

body {
	background: #fff;
}
nav {
	width: 100%;
	top: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
	position: fixed;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
	-webkit-box-shadow: 1px 1px 1px 1px #eee;
	        box-shadow: 1px 1px 1px 1px #eee;
}

.site {
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  height: 80px;
  padding: 20px;
  background: #fff;
  -ms-flex-pack: distribute;
      justify-content: space-around;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-flex: 1;
      -ms-flex: 1 1 auto;
          flex: 1 1 auto;
}
nav img {
	margin-left: -2px;
	margin-top: -1px;
	height: 60px;
}

nav h2 {
	color: #aaa;
	font-size: 25px;
	margin-top: 12px;
	margin-left: 10px;
	margin-right: 20px;
}

.header {
	margin-left: 20px;
}
span {
	width: 2px;
	height: 45px;
	margin-left: 10px;
	margin-right: 10px;
	background: #ddd;  
} 
.site #search {
 -webkit-box-flex: 9;
     -ms-flex: 9;
         flex: 3;
 height: 60px;
 margin: 10px;
 -webkit-box-pack: start;
     -ms-flex-pack: start;
         justify-content: flex-start;
}


.site #search input{
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  font-size: 15px;
  background: #eee;
  border: none;
}
#search input[type="text"] {
	padding-left: 26px;
	border-radius: 4px;
	-webkit-transition: 400ms ease-in-out;
	-o-transition: 400ms ease-in-out;
	transition: 400ms ease-in-out;
}
#search input[type="text"]:hover{
	-webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
	        box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
}
#search input[type="text"]:focus{
	color: #999;
	background: #222;
	-webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
	        box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
}
::-webkit-input-placeholder{
	text-align: center;
}

input:focus::-webkit-input-placeholder {
	font-weight: 900;
	text-align: left;
}

.site div {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-flow: row;
          flex-flow: row;
  -ms-flex-pack: distribute;
      justify-content: space-around;
}

.site div a {  
  color: #bbb;
  width: 40px;
  height: 40px;  
  padding: 7px;
	text-align: center;
	font-size: 22px;
	-webkit-transition: 100ms ease-in-out;
	-o-transition: 100ms ease-in-out;
	transition: 100ms ease-in-out;
}

.site div a:hover {  
  font-size: 20px;
 	color: #000;  
}

input:focus {
  outline:0;
}

@media screen and (max-width: 768px){
  .site  {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: fle-xstart;
        -ms-flex-pack: fle-xstart;
            justify-content: fle-xstart;
    				padding: 0px;
  					background: #fff;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-flex: 1;
      -ms-flex: 1 1 auto;
          flex: 1 1 auto;
  padding-top: 1.5em;
	padding-bottom: 2.5em;
  height: 200px;
   
  }
	
	
	.site > #search > input[type="text"] {
		height: 50px;
		width: 340px;
		padding: 20px;
		border-radius: 4px;
}
	
	span {
		display: none;
	}
	h2 {
		display: none;
	}
 
}


/* ICONS  */

.fa-user-o, .fa-shopping-bag {
	color: #000;
	font-weight: 900;
}

.fa-heart {
	color: #fa3380;
}
            
          
!
            
              // RANDOM PLACEHOLDERS

$(function(){
  var list = ['Search Apple Music',
							'Search App Store',
							'Search For Answers',
							'Search apple.com',
							'Ask Questions'],
      r = Math.floor(Math.random() * list.length);
  $('#placeholder').prop('placeholder',list[r]);
});


// RANDOM LOGOS

var random = [
  "http://pngimg.com/uploads/apple_logo/apple_logo_PNG19694.png",
  "http://pngimg.com/uploads/apple_logo/apple_logo_PNG19684.png",
  "http://pngimg.com/uploads/apple_logo/apple_logo_PNG19692.png",
	"http://cdn.onlinewebfonts.com/svg/img_44448.png",
  "https://i.pinimg.com/originals/41/5f/47/415f476c0d7d934f956f9a61a41e9731.png",
  "http://pngimg.com/uploads/apple_logo/apple_logo_PNG19695.png"
];

var size = random.length
var x = Math.floor(size*Math.random())
document.getElementById('image').src=random[x];


            
          
!
999px
Loading ..................

Console