Skip to content

Commit 54cdda6

Browse files
authored
Update README.md
1 parent 7f36590 commit 54cdda6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,14 @@ Example: `https://steamcommunity.com/id/k3k2810` -> vanityId = `k3k2810`
5858

5959
Full example: `https://gamer2810.github.io/steam-miniprofile/?interactive=true&vanityId=k3k2810`
6060

61+
### Styling
62+
#### Centered display
63+
By default, the iframe's content will display on the top left corner and will take up all available space from the parent container.
64+
65+
To make the content display in the center of the available space, add `centered=true` to your url.
66+
67+
Full example: `https://gamer2810.github.io/steam-miniprofile/?interactive=true&vanityId=k3k2810&centered=true`
68+
6169
### To add this to your site
6270
1. You can load it into any div with JQuery or Javascript. [Jquery's Load() guide](https://www.tutorialspoint.com/How-to-load-external-HTML-into-a-div-using-jQuery).
6371
2. You can also load it as an _iframe_

0 commit comments

Comments
 (0)