Skip to content

Instantly share code, notes, and snippets.

@srinathweb
Created October 22, 2015 11:00
Show Gist options
  • Select an option

  • Save srinathweb/ec6d37c41ad74885baab to your computer and use it in GitHub Desktop.

Select an option

Save srinathweb/ec6d37c41ad74885baab to your computer and use it in GitHub Desktop.
recover position fixed width issue opera
.menufixed{
position: fixed;
top: 0;
z-index: 999;
margin: 0 auto;
width: 100%;
background: #fff;
left: 50%;
transform: translateX(-50%);
-ms-transform: translateX(-50%);
-webkit-transform: translateX(-50%);
-moz-transform: translateX(-50%);
-o-transform: translateX(-50%);
transform: translateX(-50%);
-webkit-transform: translateX(-50%) !important;
-webkit-transform:translateX(-50%) !important;
-webkit-transform: translateZ(0);
transition: width 0.2s;
-webkit-appearance: none; /* Autoprefixer doesn't catch this */
transition: height 0.4s ease;
transition-delay:2s !important;
-webkit-transition-delay:2s !important;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment