123

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.

            
              
  <body>
  <div class="gradient">
  <div class="container" id="header">
    <div class="row">
      <div class="col-md-12 col-sm-12 col-xs-12">
  <img src="https://drive.google.com/uc?export=view&id=0B9Wnv9SZGn36bzRyb1YwTGdReXc" alt="logo" class="img-responsive center-block" id="pig">
    </div>
    </div>
    <div class="row">

  <h3 class="col-md-12 text-center" id="title">Pig Development</h3>

    <p class="col-md-12 text-center">Fully Responsive Portfolio<br>made by <a src="https://github.com/dmdusang">dmdusang</a></p>
    </div>
    </div>
    
  <!-- Main Box-->  
		
  <div class="container" id="top">
    
 

  <div class="col-lg-10 col-md-10 col-sm-10 col-lg-offset-1 col-md-offset-1 col-sm-offset-1"  id="header-main">
  <nav class="navbar navbar-default"  id="nav_bar">
    <div class="container-fluid">
      <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false" id="collapsed-bar"  >
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      
    </div>
      <!-- Collect the nav links, forms, and other content for toggling -->
      <div class="collapse navbar-collapse"  id="bs-example-navbar-collapse-1">
        
        <ul class="nav navbar-nav" id="nav">
          
          <li class="active" id="c1"><a href="#content1">C1 <span class="sr-only">(current)</span></a></li>
          <li class="active" id="c2"><a href="#content2">C2</a></li>
          <li class="active" id="c3"><a href="#content3">C3</a></li>
					<li class="active" id="c4"><a href="#content4">C4</a></li>
          
        </ul>   
      </div><!-- /.navbar-collapse -->
    </div><!-- /.container-fluid -->
  </nav>
    
   
    <div class="container-fluid  text-center" id="content1">
      <img src="https://drive.google.com/uc?export=view&id=0B9Wnv9SZGn36QVNDYUFJcGhrQzA" alt="flying-pig" class="img-responsive center-block" id="flypig">
        <h3 class="major" id="firstDes">Ipsum sed adipiscing</h3>
        <h4>djfklajflafjdaslk</h4>
    </div>
      <div class="container-fluid text-center" id="content2">
		<h3 class="major">Ipsum sed adipiscing</h3>
 				<div class="inline-block">
				<div id="content3-1">
      <img src="https://drive.google.com/uc?export=view&id=0B9Wnv9SZGn36QVNDYUFJcGhrQzA" alt="flying-pig" class="img-responsive center-block" id="flypig">
					<h5>First!</h5>
					<p>First Pig!</p>
				</div>
				<div id="content3-2">
      <img src="https://drive.google.com/uc?export=view&id=0B9Wnv9SZGn36QVNDYUFJcGhrQzA" alt="flying-pig" class="img-responsive center-block" id="flypig">
					<h5>Second!</h5>
					<p>Second Pig!</p>
				</div>
				<div id="content3-3">
			<img src="https://drive.google.com/uc?export=view&id=0B9Wnv9SZGn36QVNDYUFJcGhrQzA" alt="flying-pig" class="img-responsive center-block" id="flypig">
					<h5>Third!</h5>
					<p>Third Pig!</p>
				</div>
				</div>
        <h4>djfklajflafjdaslk</h4>
    </div>
    <div class="container-fluid text-center " id="content3">
      <img src="https://drive.google.com/uc?export=view&id=0B9Wnv9SZGn36QVNDYUFJcGhrQzA" alt="flying-pig" class="img-responsive center-block" id="flypig">
        <h3 class="major">Ipsum sed adipiscing</h3>
        <h4>djfklajflafjdaslk</h4>
    </div>
    <div class="container-fluid text-center" id="content4">
      <img src="https://drive.google.com/uc?export=view&id=0B9Wnv9SZGn36QVNDYUFJcGhrQzA" alt="flying-pig" class="img-responsive center-block" id="flypig">
        <h3 class="major">Ipsum sed adipiscing</h3>
        <h4>djfklajflafjdaslk</h4>
    </div>
				
      
      </div> <!--End of Col Container -->				<div class="col-xs-10 col-xs-offset-1">
				<footer class="text-center inline-block" id="footer">
			<p>  ctus et ultrices posuere cubilia Curae; </p>
					<p>Brought by Drew Dusang<a href="https://github.com/dmdusang"> dmdusang@gmail.com </a> </p>
		</footer>
		
		</div>
    </div> <!-- End of Container -->
		
		
		
		</div>
    

    
    
    


    
    

      
      

   
      
   

    
  </body>
            
          
!
            
              #flypig{
  margin-top: 10px;
  margin-bottom: 10px;
  display:block;
  width: 50%;
  height: 50%;
	border: 8px double black;
	border-radius: 50%;
}
#pig{
  margin-top: -100px;
  margin-bottom: -150px;
  width: 100%;
  height: 100%;
}
.major{
  font-family:Lobster;
  
}
#header-main{
  background-color:white;
  padding: 0px;
  border-radius: 4px;
  
  
}



#content1{
		margin-top: 170px;
    border-bottom: 8px double black;
	
    
}



/*NavBar*/

#nav { text-align: center; border-radius:4px;}
#nav li {list-style: none;}
#nav a {color: #ecf0f1; display: block; font-family:arial; text-transform: uppercase; font-weight: bold; margin: 0; text-decoration: none;}
#nav a:hover{background-color: #ecf0f1; color: #2c3e50;border-radius: 10px; box-shadow: 5px 5px 10px rgba(0,0,0,0.5); }

.navbar .navbar-nav {
    display: inline-block;
    float: none; 
}


li {
    border-radius: 10px;
    margin: 2px;
    background: #2c3e50;
    
}

.navbar .navbar-collapse {
    text-align: center;
}


.affix {
	position: fixed !important;
  top: 0;
  width: 100%;
	
}
  

.affix-top {
  position: absolute;
  width: 100%;
}

.affix-bottom {
  position: absolute;
  width: 100%;  
}




/* End NavBar */


#title{
  
  font-family: light-300;
}


#top{
  margin-top: 100px;
	
}







.gradient {

  /* can be treated like a fallback */
  background-color: #34495e;

  /* will be "on top", if browser supports it */


  /* these will reset other properties, like background-position, but it does know what you mean */
  background: #34495e;
  background: linear-gradient(to left bottom,#e74c3c,#9b59b6);

	

}

#content3-1{
	float: left;
	width: 50%;
	margin-right:auto;
	margin-left:auto;
}
#content3-2{
	float: right;
	width: 50%;
	margin-right:auto;
	margin-left:auto;
}

#content3-3{
	width: 50%;
	margin-right:auto;
	margin-left:auto;
}
p {
	text-align: center;
}
h3,h4{
	margin-top: 50px;
	margin-bottom: 50px;
}

#footer{
	margin-top:100px;
	margin-bottom: 100px;
	background: transparent !important;
	
}

            
          
!
            
              /* Responsive width when using the bootstrap affix plugin (width became absolute) with a fluid grid */
/* Affix on doc ready */


$(window).on('load',function()
{
	
	var bottomOffLine = $(document).height() - $('#header-main').offset().top - $('#header-main').outerHeight();
	
	
console.log($("#nav_bar").offset().top);
$("#nav_bar").affix({offset: {top: $("#nav_bar").offset().top, bottom: bottomOffLine} });

});
$(window).on('resize',function(){

$('#nav_bar').data('bs.affix').options.offset = $('#header-main').offset().top;

});





/* Horizontal Correction */

$(window).on('resize', function() {
var sideBarNavWidth=$('#header-main').width();
$('#nav_bar').css('width', sideBarNavWidth);
  

});


$(window).on('scroll', function() {
var sideBarNavWidth=$('#header-main').width();
$('#nav_bar').css('width', sideBarNavWidth);
  
});
            
          
!
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.

Console