Note that there are some explanatory texts on larger screens.

plurals
  1. POImage not moving
    primarykey
    data
    text
    <p>I have done a webpage which has a moving image in the background.<br><br> 1. IE and Opera just shows the image <strong>doesn't</strong> move it. (The fonts <strong>don't</strong> work either)<br> 2. Chrome and Safari also <strong>doesn't</strong> move the image.(But fonts <strong>are shown correctly</strong>)<br> 3. Firefox <strong>moves the image</strong> as required.(But <strong>fonts</strong> are <strong>not displayed</strong>)</p> <p>You can see the website here : <a href="http://ankitsuryawanshi.in/projects/404-html/" rel="nofollow">http://ankitsuryawanshi.in/projects/404-html/</a> <br></p> <p>The (edited) CSS code is here : </p> <pre><code>/*----------------------------------------------------------------------- @FONT-FACE ------------------------------------------------------------------------*/ @font-face { font-family: 'ChunkFive-Roman'; src: url('../fonts/Chunkfive-roman-webfont.eot'); src: url('../fonts/Chunkfive-roman-webfont.eot?#iefix') format('embedded-opentype'), url('../fonts/Chunkfive-roman-webfont.woff') format('woff'), url('../fonts/chunkfive-roman-webfont.ttf') format('truetype'), url('../fonts/chunkfive-roman-webfont.svg#ChunkFiveRegular') format('svg'); font-weight: normal; font-style: normal; } @font-face { font-family: 'BloklettersBalpen'; src: url('../fonts/blokletters-balpen-webfont.eot'); src: url('../fonts/blokletters-balpen-webfont.eot?#iefix') format('embedded-opentype'), url('../fonts/blokletters-balpen-webfont.woff') format('woff'), url('../fonts/blokletters-balpen-webfont.ttf') format('truetype'), url('../fonts/blokletters-balpen-webfont.svg#BloklettersBalpen') format('svg'); font-weight: normal; font-style: normal; } /*----------------------------------------------------------------------- LETTERING SPECIFIC STYLES ------------------------------------------------------------------------*/ /* Logo H1 Text */ #logo .word1 { margin-left: 3px; } #logo .word1 span { display: inline-block; position: relative; letter-spacing: 0; transition: width 0.2s; } #logo span:hover { top: 4px; } /*----------------------------------------------------------------------- DEFAULTS ------------------------------------------------------------------------*/ body { color: #000; background: #c1b69a url(../images/texture.jpg); } a { color: #000; text-decoration: none; outline: none; } h1 { font-family: 'ChunkFive-Roman', sans-serif; color: #1e1e1e; font-size: 60px; font-weight: 500; line-height: 1; text-transform: none; } h2 { font-family: 'ChunkFive-Roman', sans-serif; color: #1e1e1e; font-size: 114px; font-weight: 800; line-height: 1; text-transform: uppercase; text-shadow: #62b445 1px 1px 0, #62b445 2px 2px 0, #62b445 3px 3px 0, #45a5f6 4px 4px 0, #45a5f6 5px 5px 0, 5px 8px 10px rgba(0,0,0,.35); } h3 { font-size: 46px; font-weight: bold; line-height: 1.5; color: #262626; } h4 { font-family: 'ChunkFive-Roman', sans-serif; font-size: 26px; color: #262626; margin-bottom: 20px; font-style: normal; text-transform: uppercase; } .written { font-family: 'BloklettersBalpen',sans-serif; font-size: 18px; color: #000; } .written-small { font-family: 'BloklettersBalpen', sans-serif; font-size: 14px; color: #000; } p { font-size: 20px; color: #000; } /* About Page Definitions Area */ .col-def-plus p,.col-def-equals p { font-size: 80px; font-weight: 800; } .col-def p { font-size: 18px; } div.col-def p.word-break { font-size: 28px; font-weight: 900; color: #000; } div.col-def p.word-def { font-size: 14px; line-height: 1.7; margin-top: 12px; font-style: italic; color: #333; } #shareTab { font-family: 'ChunkFive-Roman', sans-serif; } /*----------------------------------------------------------------------- COMMON CLASSES ------------------------------------------------------------------------*/ .clear { clear: both; } .wrap { max-width: 960px; width: 100%; margin: 0 auto; } .fr { float: right; } .fl { float: left; } .ac { text-align: center; } .line-through { text-decoration: line-through; } .underline { text-decoration: underline; } /*----------------------------------------------------------------------- FLOATING BACKGROUND IMAGES ------------------------------------------------------------------------*/ #clouds { z-index: -1; background: url(../images/clouds.png); position: absolute; width: 100%; height: 736px; display: block; } @keyframes "float-clouds" { 0% { background-position: 2400px 0; } 100% { background-position: 0 0; } } @-moz-keyframes float-clouds { 0% { background-position: 2400px 0; } 100% { background-position: 0 0; } } @-webkit-keyframes "float-clouds" { 0% { background-position: 2400px 0; } 100% { background-position: 0 0; } } @-ms-keyframes "float-clouds" { 0% { background-position: 2400px 0; } 100% { background-position: 0 0; } } @-o-keyframes "float-clouds" { 0% { background-position: 2400px 0; } 100% { background-position: 0 0; } } #clouds { animation-name: float-clouds; -webkit-animation-duration: 95s; animation-iteration-count: infinite; animation-timing-function: linear; -moz-animation-duration: 95s; -o-animation-duration: 95s; -ms--animation-duration: 95s; } </code></pre> <p>How do I correct everything here, so that it works correctly in all browsers.<br></p> <p>Here is the JS code for the image movement :</p> <pre><code> $(document).ready(function() { $("#logo h1, .nav-here-home, .nav-here-about, .home-page-tag h3, .about-page-tag h3, .written").lettering('words').children('span').lettering(); $(".home-intro h2").fitText(.86); $(".about-intro h2").fitText(.86); }); // --------------------------------------------------- // // Background Image Floating // // --------------------------------------------------- // $(document).ready(function() { if (!$.browser.webkit){ var clouds = $('#clouds'); var background = 0; setInterval(function(){ background -= 2; if (background == 1200) background = 0; clouds.css('background-position', background) }, 95) } }) </code></pre> <p>Where should I now edit it ?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload