More Formatting Tips: Headings, Divider Lines, Lists, and Justifying Images

in #steem-help7 years ago

This post gives follows on from several other recent posts (linked at the bottom) where I share more formatting tips, tricks, and code. Feel free to comment with other formatting that you are trying to achieve, and check out my other formatting posts.

1. Headings

Different sized headings can be achieved by using between one and five # symbols in front of the heading.
# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5

The code above give the font size and spacing below:

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5

2. Divider Lines

To create a grey horizontal divider line like the ones in this post you can use --- or <hr>


3. Numbered Lists

Numbered lists can be done by just putting numbers (it will count upwards even if you mess with the number order) followed by a full stop, a space, then your text for each item. If you prefer to use HTML you can start a numbered list with <ol> and end it with </ol> and then each item needs <li> at the start and </li> at the end but this is a lot more effort.

  1. Item 1
  2. Item 2
  3. Item 3

4. Bullet Pointed Lists

For bullet pointed items just put a * and then a space in front of each line you want bulleted.

* Item
* Item

  • Item
  • Item

5. Justifying Images

The code <div class="pull-right"><img src="https://steemitimages.com/DQmQfVQVnLW5KuEejCDG9KUNQq6nL97PM5gZeTiMmmuAbGb/image.png" /></div>followed by some text lets me justify the image on the right and have text on the left.

I can change the "pull-right" to "pull-left" to have the image justified on the left instead. The url for src= can be a steemit image or an external link to an image.

You should note that a <div> tag does create a line-break before and after itself.



Other Recent Help Posts

Sort:  

Great formatting tips! Was wondering how to justify 'pull' right images. How can we center them?

Thanks. Do you want to have the image in the center and text either side or just an image in the center? To get an image centered you can use <center> (and </center>) like I do below. To get text either side of it is going to be a bit more of a challenge (and would probably look a bit funny).



Yeah, I actually tried this on my latest post and it did look weird. I pull-right the Source hyperlink of a big image, but anything smaller that I center I have to put the Source hyperlink directly below it or else it looks super crazy.

div treats creates a new block that I think can make things a bit awkward. I would imagine someone with more html skill than me would have other ways of doing it.

I can't believe it didn't occur to me to use html tags in my post! Holds my web developer head down in shame... thanks for enlightening me.

Your Post Has Been Featured on @Resteemable!
Feature any Steemit post using resteemit.com!
How It Works:
1. Take Any Steemit URL
2. Erase https://
3. Type re
Get Featured Instantly – Featured Posts are voted every 2.4hrs
Join the Curation Team Here

Coin Marketplace

STEEM 0.15
TRX 0.12
JST 0.026
BTC 57014.79
ETH 2478.23
USDT 1.00
SBD 2.29