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 4336780
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T10:51:15+00:00 2026-05-21T10:51:15+00:00

It is possible to add elements inside HTML5’s canvas? For example: <canvas id=canvas2 width=650

  • 0

It is possible to add elements inside HTML5’s canvas?

For example:

<canvas id="canvas2" width="650" height="850"> 
    <div class="draggable" class="ui-widget-content" width='100px' height='100px'>
       <textarea class="resizable" rows="2" cols="10" style="color: #FF0707; ">
        Example
       </textarea>
    </div>
</canvas> 

That doesn’t show anything… however, if I put that draggable div inside any other element in the html it works…

What am I missing?

Thx.

  • 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-05-21T10:51:16+00:00Added an answer on May 21, 2026 at 10:51 am

    You cannot add elements into the canvas like that.
    The innerHTML of the canvas is shown when a browser does not suport <canvas>.
    You should extra elements beside the canvas, or a <div> layer above the canvas.

    <canvas id="canvas2" width="650" height="850"> 
    
    </canvas>
    <div style="position: absolute; top: 50px; left: 50px; width: 100px; height: 100px; z-index: 5;" class="draggable" class="ui-widget-content">
       <textarea class="resizable" rows="2" cols="10" style="color: #FF0707; ">
          Example
       </textarea>
    </div>
    

    See also:
    https://developer.mozilla.org/en/Canvas_tutorial/Basic_usage#Fallback_content

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

Sidebar

Related Questions

I have a block-level HTML element that contains multiple block-level and inline-level elements, e.g.
I wonder if it's possible to create an extension method which has functionality &
I am sorry for possible misleading about the title, but I have no idea
I'm currently using a combination of CSS and Div tags to achieve rounded corners
Possible Duplicate: What is the purpose of the Assemblies node in Web.Config? I removed
I need a way to store data inside xml files and write to differant
I am trying to create a type of mind mapping software that runs on
I am writing an application that converts an ajax xml response into html using
EDIT: After re-reading my post I think I am being a little bit unclear
I am trying to write the HTML and CSS for an internal webapp properly.

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.