Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7774933
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T17:30:09+00:00 2026-06-01T17:30:09+00:00

Below is le code. I want movementCanvas underneath canvas. <html> <head> <script type=text/javascript src=game.js></script>

  • 0

Below is le code. I want movementCanvas underneath canvas.

<html>
<head>
  <script type="text/javascript" src="game.js"></script>
</head>
<body>

  <canvas id="canvas" width="710" height="597" style="border:1px solid #c3c3c3;">
    <p>Your browser doesn't support canvas!</p>
  </canvas>

  <canvas id="movementCanvas" width="710" height="597" style="border:1px solid #c3c3c3;">
  </canvas>

</body>
</html>

Second question. At a higher level, I’m trying to hide the canvas below. The movementCanvas is a color-coded map where I’ll look up what value is there when clicked, and the only way to access the pixels is by using the HTML5 canvas and context. The top “canvas” is the front end and should look nice. Does that sound like a sane way to do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T17:30:11+00:00Added an answer on June 1, 2026 at 5:30 pm

    Use CSS’s position: absolute. Add the following CSS to your page:

    canvas {
        position: absolute;
        top: 0;
        left: 0;
    }
    

    This will put both canvases at the same spot: the topleft-most part.

    You might want to put them in a wrapper element, which will need to be position: relative in order for its child elements to be. For example, your HTML will look something like this:

    <div class="wrapper">
        <canvas id="canvas1" width="400" height="300"></canvas>
        <canvas id="canvas2" width="400" height="300"></canvas>
    </div>
    

    And your CSS will look like this:

    .wrapper {
        position: relative;
        width: 400px;
        height: 300px;
    }
    
    .wrapper canvas {
        position: absolute;
        top: 0;
        left: 0;
    }
    

    Then position the wrapper div however you’d position the other stuff.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

From below HTML code I want to get all the text except that in
I want to enable auto update script in flex3. i am using below code
There is a script that triggers the code below I want to disallow executing
I want to modify the below code to read the nodes from a text
This is my below code and I want to catch the exception if any
See code below: I want Page 1 to alert #testing... This works in C
I want to know if the below code: <?php printf (%s, $some_variable); ?> is
I want to know is below code correct ? I have following code which
Issue In the below code , say if i want to change the color
I want to send data through URL.I've tried the below code: Intent browserIntent =

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.