This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://www.codeatlarge.com/percentage-minus-pixels/ | |
var $wrap = $(".wrap"); | |
var $navitem = $(".wrap nav .navitem"); | |
$(window).resize(function(){ | |
var totalWidth = $wrap.width(); | |
var calcWidth = (totalWidth - 200) / 3; | |
$navitem.width(calcWidth); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JS | |
1. http://codepen.io/gapcode/pen/vEJNZN | |
HTML + JS | |
2. http://stackoverflow.com/questions/10964966/detect-ie-version-prior-to-v9-in-javascript | |
<!doctype html> | |
<!--[if lt IE 7 ]> <html class="ie6"> <![endif]--> | |
<!--[if IE 7 ]> <html class="ie7"> <![endif]--> | |
<!--[if IE 8 ]> <html class="ie8"> <![endif]--> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://jsfiddle.net/hAw53/ | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. http://stackoverflow.com/questions/23724419/background-attachmentfixed-internet-explorer-11-odd-up-down-jiggle | |
only for body | |
body { | |
background-attachment: fixed; | |
} | |
2. не дергается если убрать z-index: -1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://davidwalsh.name/document-readystate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Чтобы отображался в ie должен заканчиваться форматом woff | |
@font-face { | |
font-family: "Muli Light"; | |
src: url("../fonts/muli/muli-light.ttf") format("truetype"); | |
src: url("../fonts/muli/muli-light.woff") format("woff"); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
addEvent(scene, 'selectstart', function(event) { | |
event.preventDefault(); | |
return false; | |
}); | |
addEvent(scene, 'mousedown', function(event) { | |
event.preventDefault(); | |
return false; | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://habrahabr.ru/post/214559/ | |
html * {max-height:1000000px;} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://stackoverflow.com/questions/12502234/how-to-prevent-webkit-text-rendering-change-during-css-transition/12820319#12820319 | |
transform: translateZ(0px); | |
or | |
http://stackoverflow.com/questions/12980153/image-moves-on-hover-chrome-opacity-issue | |
backface-visibility: hidden; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="tab"> | |
<div class="box visible"> | |
<h4>People talking about <a href="#">#APP-PLUS</a></h4> | |
<p>Join our #APP-PLUS adventure. Meet up in London this Saturday! Spread the word and join us for fun.</p> | |
</div> | |
<div class="box"> | |
<h4>Users loving <a href="#">#APP-PLUS</a></h4> | |
<p>Joining this weekend's #APP-PLUS fun! @emmy_lemmy bring your dogs, we can make it a fun walk!</p> | |
</div> | |
<div class="box"> |