p5.js-website icon indicating copy to clipboard operation
p5.js-website copied to clipboard

Confusing line in style() reference page

Open cammykaz opened this issue 2 years ago • 3 comments

Increasing Access

The description in the style() reference page is worded in a confusing way, especially for beginners. Improving the clarity would make it more accessible.

Most appropriate sub-area of p5.js?

Reference

Feature request details

Specifically confusing is the line: "however, if a single argument is given in CSS syntax ('text-align:center'), .style() sets the CSS appropriately."

Full description as it is currently:

Sets the given style (CSS) property (1st arg) of the element with the given value (2nd arg). If a single argument is given, .style() returns the value of the given property; however, if a single argument is given in CSS syntax ('text-align:center'), .style() sets the CSS appropriately.

cammykaz avatar Jan 07 '23 18:01 cammykaz