# P5js sketch as background of 1 div

**URL:** https://discourse.processing.org/t/p5js-sketch-as-background-of-1-div/17487
**Category:** Coding Questions
**Created:** [January 31, 2020, 9:01pm UTC](https://discourse.processing.org/t/p5js-sketch-as-background-of-1-div/17487 "2020-01-31T21:01:01Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![teddysphotos](https://avatars.discourse-cdn.com/v4/letter/t/ecae2f/32.png) [@teddysphotos](https://discourse.processing.org/u/teddysphotos)
#### Post date: [January 31, 2020, 9:01pm UTC](https://discourse.processing.org/t/p5js-sketch-as-background-of-1-div/17487/1 "2020-01-31T21:01:01Z")

</div>

I have multiple

 tags in my project, I want to set one of my p5js sketches as the background of a particular 
. How do I do that?  
I have set the z-index of the canvas in sketch.js as -1. I just want to know how to set the background for only 
 tag and not the entire webpage.  
Thanks and regards.
