Skip to content

Commit

Permalink
Update <columns> to have correct restrictions, fix bad example for <img>
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatGravyBoat committed Nov 16, 2023
1 parent 87b8bb0 commit 3c5ec56
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions docs/hermes/elements/columns.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ The following will show 3 columns, with widths of 40%, 20%, and 40% respectively
</columns>
```

## Restrictions

- The `<columns>` element must contain only `<column>` elements.
- The `<columns` element cannot contain more than 3 `<column>` elements.

## Related Elements

- [`<column>`](../elements/column)
Expand Down
4 changes: 2 additions & 2 deletions docs/hermes/elements/img.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The `<img>` element is used to display an image.
## Attributes

`src`
> The source of the image, in resource location format. Example: `minecraft:textures/items/diamond_sword.png`.
> The source of the image, in resource location format. Example: `minecraft:textures/item/diamond_sword.png`.
`width`
> The width of the image. Defaults to 0.
Expand All @@ -36,7 +36,7 @@ The `<img>` element is used to display an image.
The following example will display a diamond sword.

```html
<img src="minecraft:textures/items/diamond_sword.png" width="16" height="16"/>
<img src="minecraft:textures/item/diamond_sword.png" width="16" height="16"/>
```

## Version History
Expand Down

0 comments on commit 3c5ec56

Please sign in to comment.