html - Website displays in chrome perfectly, but not in mozilla or IE -
here code snippets html , css. works finds in google chrome, when try display in mozilla or ie, shows different. cannot attach images not have required reputation. appreciate help. thank you!
html
<!doctype html> <html> <head> <meta charset="utf-8" /> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <link rel="stylesheet" type="text/css" href="style.css"> <link rel="shortcut icon" href="ak.png"> <title>home</title> </head> <body> <div class="nav"> <nav> <ul class="navigation fade-in2"> <li><a href="#home">home</a></li> <li><a href="#about">about</a></li> <li><a href="#portfolio">portfolio</a></li> <li><a href="#shop">shop</a></li> <li><a href="#blog">blog</a></li> <li><a href="#contact">contact</a></li> </ul> </nav> </div> <div class="logo"><a href="#home"><img class="ak fade-in2" src="ak.png"></a></div> <div class="background"><img class="beauty" src="beauty.jpg"></div> <div class="header"> <h1 class="headername fade-in">design | develop | brand</h1> <h4 class="service fade-in3"><a href="#portfolio">view portfolio</a></h4> <h4 class="service fade-in3"><a href="#services">view services</a></h4> </div> <!--<div class="mainbody"><p>safsdaf</p></div>--> </body> </html> css
@-webkit-keyframes fadein { { opacity:0; } { opacity:1; } } @-moz-keyframes fadein { { opacity:0; } { opacity:1; } } @keyframes fadein { { opacity:0; } { opacity:1; } } * { padding: 0; margin: 0; } li { display: inline; font-size: 15px; font-family: verdana; } nav { width: 100%; text-align: right; background-color: #222222; padding: 0; margin: 0px; line-height: 47px; position: fixed; z-index: 100; } .ak{ width: 90px; height: 55px; z-index: 101; position: fixed; background: transparent; color: transparent; background-color: transparent; } .nav a{ text-decoration: none; padding: 15px; } .nav a:link{ color: #a7a7a7; } .nav a:visited{ color: #a7a7a7; } .nav a:hover{ color: #dbdbdb; transition: 0.3s ease-out 0s; transition-property: all; transition-duration: 0.3s; transition-timing-function: ease-out; transition-delay: 0s; } .header { background-color: rgba(0,0,0, 0.25); width: 100%; height: 626px; text-align: center; position: fixed; z-index: 10; } .background { position: fixed; z-index: 8; } .beauty { width: 100%; height: 626px; } .headername { font-size: 2.5em; text-align: center; color: #d3d3d3; padding: 180px; padding-bottom: 50px; margin: 0px; letter-spacing: 4px; font-weight: 100; font-family: 'lato', sans-serif; } .fade-in { opacity:0; /* make things invisible upon start */ -webkit-animation:fadein ease-in 1; /* call our keyframe named fadein, use animation ease-in , repeat 1 time */ -moz-animation:fadein ease-in 1; animation:fadein ease-in 1; -webkit-animation-fill-mode:forwards; /* makes sure after animation done remain @ last keyframe value (opacity: 1)*/ -moz-animation-fill-mode:forwards; animation-fill-mode:forwards; -webkit-animation-duration:1s; -moz-animation-duration:1s; animation-duration:1s; -webkit-animation-delay: 0.3s; -moz-animation-delay:0.3s; animation-delay: 0.3s; } .fade-in2 { opacity:0; /* make things invisible upon start */ -webkit-animation:fadein ease-in 1; /* call our keyframe named fadein, use animation ease-in , repeat 1 time */ -moz-animation:fadein ease-in 1; animation:fadein ease-in 1; -webkit-animation-fill-mode:forwards; /* makes sure after animation done remain @ last keyframe value (opacity: 1)*/ -moz-animation-fill-mode:forwards; animation-fill-mode:forwards; -webkit-animation-duration:1s; -moz-animation-duration:1s; animation-duration:1s; -webkit-animation-delay: 0.6s; -moz-animation-delay:0.6s; animation-delay: 0.6s; } .fade-in3 { opacity:0; /* make things invisible upon start */ -webkit-animation:fadein ease-in 1; /* call our keyframe named fadein, use animation ease-in , repeat 1 time */ -moz-animation:fadein ease-in 1; animation:fadein ease-in 1; -webkit-animation-fill-mode:forwards; /* makes sure after animation done remain @ last keyframe value (opacity: 1)*/ -moz-animation-fill-mode:forwards; animation-fill-mode:forwards; -webkit-animation-duration:1s; -moz-animation-duration:1s; animation-duration:1s; -webkit-animation-delay: 0.9s; -moz-animation-delay:0.9s; animation-delay: 0.9s; } .service{ font-size: 14px; width: 190px; text-align: center; font-family: 'lato', sans-serif; color: #d3d3d3; border: 2px #a7a7a7 solid; border-color: rgba(255, 255, 255, 0.5); display: inline-block; border-radius: 5px; background-color: transparent; letter-spacing: 2px; } .service a{ text-decoration: none; display: block; padding: 15px 20px; } .service a:link{ color: #d3d3d3; } .service a:visited{ color: #d3d3d3; } .service a:hover{ background-color: rgba(255, 255, 255, 0.15); transition: background-color .15s ease-in; -webkit-transition: background-color .15s ease-in; -moz-transition: background-color .15s ease-in; -o-transition: background-color .15s ease-in; } update 1: updated both browsers , seems css3 animations work fine on both browsers. seems problem positioning of pages
update 2: here links different browser screen shots
chrome: https://www.dropbox.com/s/jlpa4vu51kdnews/chrome.jpg
internetexplorer: https://www.dropbox.com/s/zbchs3su9ahxr0n/ie.jpg
mozilla firefox: dropbox(.)com/s/fyalnhsha9ktadz/mozilla.jpg (i can't post third link because don't have enough reputation)
--- notice in chrome logo in top left looks smooth while other 2 not much. believe pictures self explanatory.
here jsfiddle. want?
just changing first line of css file.
@-webkit-keyframes fadein { { opacity:0; } { opacity:1; } }
Comments
Post a Comment