Has createCheckbox() always made a checkbox with a div or is it a bug?

i have a for loop that creates 20 checkboxes, however they are all in there own individual divs, which makes them all display: block which is not what i want.

any suggestions?

Commenting to bump this question to the front page. I too get an additional (unwanted) div around checkboxes created using the createCheckBox(). Sure, I could fix it with a splash of CSS but it seems to be a bug in p5 and it’s driving me crazy. Help!

Using p5.js ver 1.4.0.

@stixan – did you report it as an issue on the p5.js github repository?

No. But I’ll do that now. Just wanted to probe if others still experienced this issue.

1 Like
1 Like