javascript - Panel with start button that moves up on button click -
i want panel start button in middle of page. when button clicked panel should move , disappear. content of page should start loading after button pressed. start button game.
currently use 2 html pages. first panel(index.html) , second content. when press button moves panel up, removes , loads second page. feel bit clunky wonder there better way this?
i'm not sure if works canvas. said in comments suggest doing text-align:center;
. works text , buttons. center other elements such divs
try margin: auto;
. luck canvas :-)
i suggest expanding css knowledge because text-align
common use margin:auto;
.
Comments
Post a Comment