Center of html in the browser (html canvas). Help, please.

Hi guys.

I'm really stuck here and I hope someone can help. I looked online and found some answers but I'm not good enough with the code to be able to figure out how to change this option for centering in the browser window. This code - published from flash with html canvas cc - looks different to other peoples code. Could someone please indicate where I need to add the ' align: Center ' or 100% or whatever is needed. Thanks to you all!

<! DOCTYPE html >

< html >

< head >

< meta charset = "UTF-8" >

animation of curve < title > change flash < / title >

" < script src =" http://code.createjs.com/Easeljs-0.8.1.min.js "> < / script > .

" < script src =" http://code.createjs.com/tweenjs-0.6.1.min.js "> < / script > .

" < script src =" http://code.createjs.com/MovieClip-0.8.1.min.js "> < / script > .

" < script src =" http://code.createjs.com/preloadjs-0.6.1.min.js "> < / script > .

< script src = "edit the curve animation flash.js" > < / script >

< script >

var canvas, stage, exportRoot;

function init() {}

canvas = document.getElementById ("canvas");

images = images | {};

var loader = new createjs. LoadQueue (false);

loader.addEventListener ("fileload", handleFileLoad);

loader.addEventListener ("complete", handleComplete);

loader.loadManifest (lib.properties.manifest);

}

function handleFileLoad (evt) {}

If (evt.item.type == 'image') {[evt.item.id] = evt.result ;} images

}

function handleComplete (evt) {}

exportRoot = new lib.changecurveanimationflash ();

Stadium is new createjs. Internship (Canvas);

stage.addChild (exportRoot);

internship. Update();

stage.enableMouseOver ();

createjs. Ticker.setfps(25) (lib.properties.fps);

createjs. Ticker.addEventListener ("tick", stage);

}

< /script >

< / head >

< onload = "init (); the body"style =" background-color: #D4D4D4 ">

< canvas id = "canvas" width = "1024" height = "768" style = "background-color: #FFFFFF" > < / canvas >

< / body >

< / html >

Change this

to do this:

Add the following CSS code to yourtag.  You can put under your

Tags: Coding Corner

Similar Questions

Maybe you are looking for

  • generation of HTML reports save to the same file VI

    Hi all IM creating a sample html report using labview6.1. My question is I want to save my html report file in the current directory where the vi is instead of giving some path like 'C:\Folder1\Folder2\. '... "etc. My intention is to put the VI in a

  • In the information on the tasks of the Office bar (lower right corner of the screen) a missing icons

    The field of information on my task bar (on the side of the lower right of the desktop where the clock is displayed) has fallen sharply icons to control volume of speaker and icon or the shortcut to view your internet connection.  I haven't changed a

  • BlackBerry Smartphones Ringtones for my contacts will not work if the (Torch 9800) handset is locked

    Ringtones for my contacts do not work if the (Torch 9800) handset is locked; the default / everyone of another ring is used instead.  When the handset is not locked, it works well.  Someone knows how to fix this? [Title edited to reflect the new subj

  • Fields appear empty!

    I created a form to fill out.  When she came back to me, the fields are white except when I click on them, then the text appears again.  Someone at - it a solution?

  • Broken config item sync?

    I'm on 5.5.3. Try to update the element of the configuration between the two instances. Configuration of source element has 2 attributes, the string type. My change is to remove an attribute and add a new attribute. Review of config saved and rugged.