Want to align to the right or to the left in Steemit? Here's how!

in #steemit7 years ago (edited)

Untitled-1.jpg


Untitled-2.jpg

This question has been asked many times by some of my followers so I decided to write a detailed post on how to do it! Note that with the current Steemit editor, there is no super easy way to do this, so this guide will be helpful to those who really want to use these features in their posts!

I'll start with the short guide, aimed at those proficient in html, then proceed with a more detailed guide.

By the way, left or right alignment only works in markdown mode!


Short Guide

Use <div class="pull-left"> for left alignment and <div class="pull-right"> for right alignment. Each div must be closed with a </div>.



Detailed Guide

Let's start with left alignment as an example. In markdown mode, enter the following html code, which is also known as a div block:

pull-left.jpg

Now whatever you put in between <div class="pull-left"> and </div> will be left-aligned up to the middle of the page, as the following image demonstrates.


Anything you write outside of the closing </div> will start to wrap around the first div block. The following illustrates.

left2.jpg
left2b.jpg

Let's continue by adding a right-aligned section! See below that by adding another <div class="pull-right"> block, we added another section of material that is aligned to the right of the page, again with the stuff inside the block only going as far as the middle of the page.

right1.jpg
right1b.jpg

Now if I start adding text or images to the outside of this new div block, it will start on the left and if I add enough stuff, it will eventually wrap under the right aligned material!

right2.jpg
right2b.jpg


That about covers it! The rest is only limited by your imagination! Have fun and Steem on!

If you have any questions please don't hesitate to ask!

Please re-steem this article if you found it useful to help spread the information around!


Hope you enjoyed this post! I strive hard to provide quality content :)

My goal is to share with this wonderful community my passion in photography, and hopefully contribute to the awesome inspirational content on Steemit.

I read and try to respond to all comments, and welcome any photography related questions and feedback!

Sort:  

Thanks! Super useful, upvoted!

Always glad to help, Steem on!

woh dude, had no idea steemit accepted html, good find!

upvoted and resteemed :D

So very helpful @shieha ! thankyou.png

very good, I will even resteem this to find it faster ☺

Thank you very much @clixmoney!

you are welcome ☺

That actually cleared up a lot for me. I knew the pull left or right bit, but the wrap around was a mystery to me. Thanks for that.

Glad this post was helpful to you in some way :D

I knew that... before I forgot it :P

Very helpful! Thanks!

You're welcome :)

Oh great article! resteemit

Thank you so much @bitcoinroute!

This sounds so stupid but I was wondering how you centre text??? I tried to use the p align='center' but it didn't work for me

It's not a stupid question :)
Just use <center> and </center> to center whatever is put in between those two :)

Oh my goodness - I'm so embarrassed: the simplest of code!

Coin Marketplace

STEEM 0.26
TRX 0.20
JST 0.038
BTC 92730.79
ETH 3342.45
USDT 1.00
SBD 3.76