Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update WRITE_BLOG_POSTS.md for images #3270

Merged
merged 2 commits into from
Dec 2, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 6 additions & 10 deletions docs/WRITE_BLOG_POSTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,25 +81,21 @@ Example:

However, it is advised to download the image, put it into the folder where the `index.md` file is located, and refer to its relative path instead of an absolute link from the Internet.

You can also use HTML tags to show and position images:
You can also use HTML tags to show an image:

``` HTML
<img src="{RELATIVE_PATH_OR_LINK}" />
<img src="{RELATIVE_PATH_OR_LINK}">
```

See the example usage with mixed elements:
To center an image you can use the class `text-center` and you can specify a width, such as in the following example:

``` HTML
<p align="center">
<img src="./logo.png" width="235">
<p class="text-center">
<img src="{RELATIVE_PATH_OR_LINK}" width="235">
</p>
```

<!-- markdownlint-disable MD033 -->
<p align="center">
<!-- markdownlint-disable MD033 -->
<img src="./logo.png" width="235">
</p>
The Bootstrap documentation has more information about [Aligning images](https://getbootstrap.com/docs/4.0/content/images/#aligning-images).

---

Expand Down