STYLE SWITCHER

Hi, I am Anish

More about Anish

Name : Anish

Email : anish.alias00@gmail.com

Admin theme color : fresh

Post by Anish

Equal height using simple CSS

Equal height using simple CSS

background-image
<div class=”outer”>
<div class=”box-1″>
——
</div>
<div class=”box-2″>
——
</div>
</div>

<style>

.outer{
overflow:hidden;
}
.box-1{
float:left;
}
.box-1{
float:left;
border-left:red 1px solid;
padding-bottom:9999px;
margin-bottom:-9999px;
}
</style>

More
How to make jQuery waypoints plugin fire when an element is in view and not scrolled past?

How to make jQuery waypoints plugin fire when an element is in view and not scrolled past?

drupal-and-jquery-logos
$(”div”).waypoint(function(event, direction) {
// do your fade in here
$(this).fadeIn();
}, {
offset: function() {
// The bottom of the element is in view
return $.waypoints(”viewportHeight”) – $(this).outerHeight();
}
});
Website
More