html5 - Float:right property not producing desired results in CSS3 -
i have html5/css3 code, in want float #rightodwnblock
image right. have added float: right
property code reason image still floats left. can see nothing within code cause happen, i'm wondering if issue might server-side? it's testing here:
http://www.orderofthemouse.co.uk/javascripttesting4client/index.html
the in-progress code shown below:
<!doctype html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" > <link rel="stylesheet" type="text/css" href="/style.css" /> <title>the end.</title> <style style="text/css"> .marquee { height: 1024px; overflow: hidden; position: relative; } .marquee p { position: absolute; width: 100%; height: 100%; margin: 0; line-height: 50px; text-align: center; font:120pt verdana,arial; /* starting position */ -moz-transform:translatey(100%); -webkit-transform:translatey(100%); transform:translatey(100%); /* apply animation element */ -moz-animation: scroll-up 20s linear infinite; -webkit-animation: scroll-up 20s linear infinite; animation: scroll-up 20s linear infinite; } /* move (define animation) */ @-moz-keyframes scroll-up { 0% { -moz-transform: translatey(100%); } 100% { -moz-transform: translatey(-100%); } } @-webkit-keyframes scroll-up { 0% { -webkit-transform: translatey(100%); } 100% { -webkit-transform: translatey(-100%); } } @keyframes scroll-up { 0% { -moz-transform: translatey(100%); /* browser bug fix */ -webkit-transform: translatey(100%); /* browser bug fix */ transform: translatey(100%); } 100% { -moz-transform: translatey(-100%); /* browser bug fix */ -webkit-transform: translatey(-100%); /* browser bug fix */ transform: translatey(-100%); } #rightodwnblock { top: 100px; float: right; } </style> </head> <body> <audio autoplay> <source src="<!--#exec cmd="/web/stuff/bin/randfile \*.mp3 music/mp3" -->" type="audio/mpeg" autoplay="autoplay" preload="auto" /> <source src="<!--#exec cmd="/web/stuff/bin/randfile \*.ogg music/ogg" -->" type="audio/ogg" autoplay="autoplay" preload="auto" /> <redacted> </audio> <div class="marquee"> <p>blackness.</p> </div> <img id=”rightodwnblock” height=”100px” width=”100px” src="littlelogo.png" title="do not click here" alt="do not click here"></div> </body> </html>
update: have added float-right class code, img tag properties read follows:
<img class="float-right submit-button" id="rightodwnblock" height="100px" width="100px" src="littlelogo.png" title="do not click here" alt="do not click here"></div>
this hasn't helped either. revised code has been uploaded server.
update 2: have altered quote tags suggested in 1 of answers below , updated code above reflect change. hasn't solved original issue.
your problem appears text editor not inserting quotation marks in web-standard format. instead of this:
<img id=”rightodwnblock” ...></div>
which browser interprets this:
<img id="”rightodwnblock”" ...></div>
when should using this:
<img id="rightodwnblock" ...></div>
another problem have not "ended" css blocks; missing }
@ end right here:
@keyframes scroll-up { 0% { -moz-transform: translatey(100%); /* browser bug fix */ -webkit-transform: translatey(100%); /* browser bug fix */ transform: translatey(100%); } 100% { -moz-transform: translatey(-100%); /* browser bug fix */ -webkit-transform: translatey(-100%); /* browser bug fix */ transform: translatey(-100%); } } /* <-- right here */ #rightodwnblock { top: 100px; float: right; }
this caused #rightodwnblock
style ignored browser.
Comments
Post a Comment