Skip to content

Confusing line in style() reference page #1304

@cammykaz

Description

@cammykaz

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions