$('.nav a').on('click', function () {
if ($('.navbar-toggle').css('display') != 'none') {
$(".navbar-toggle").click()
}
});
$('.navbar .nav li a').on('click', function () {
if ($('.navbar-toggle').css('display') != 'none') {
$(".navbar-toggle").click()
}
});
function hlight(element) {
$(element).one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function(e) {
$(element).removeClass('hlight');
});
$(element).toggleClass('hlight');
}
@media (min-width: 768px) {
.my-form_item {
width: 25.75%;
margin-right: 1%;
}
}
% Defines the maximum width in percent of the containing block
$(window).bind("load", function() {
"use strict";
$(".spn_hol").fadeOut(500);
});
$(document).ready(function() {
$(window).resize(function() {
if ($(window).width() < 768) {
$('.nav a').on('click.toggle-nav', function(){
$('.navbar-toggle').click()
});
}
else {
$('.nav a').off('click.toggle-nav')
}
}).resize();
});
<input type='text' name='name' class='name' style="text-transform: capitalize;" placeholder='Enter your name here'/>
position: relative;
для .test1 укажите. Без этого зеленый прямоугольник цепляется к body.For absolutely positioned elements, the top property sets the top edge of an element to a unit above/below the top edge of its nearest positioned ancestor. Note: If an absolute positioned element has no positioned ancestors, it uses the document body, and moves along with page scrolling. Note: A "positioned" element is one whose position is anything except static.
Tip: A positioned element is an element with the position property set to: relative, absolute, or fixed.
.is-about #stage{-webkit-transform:translate(-50%,-50%) scaleX(1) scaleY(1) scaleZ(1) rotateX(0deg) rotateY(0deg) rotateZ(-90deg) translate3d(20px,-2930px,0);transform:translate(-50%,-50%) scaleX(1) scaleY(1) scaleZ(1) rotateX(0deg) rotateY(0deg) rotateZ(-90deg) translate3d(20px,-2930px,0)}