To Justify or not, pulling left and right and all in the pink.

in justbecause •  6 years ago  (edited)
          So while surfing around on steemit I found another new tool to help make my post look a little bit better. This tool is the class="text-justify", here is that little tidbit of code: <div class="text-justify">
(edited, thanks to @tcpolymath showing me how)
. Okay so now I need to figure out how to show the code. So neither the tick mark nor the forward slash would work for showing the code, so just remove the space after < and before > and you have the code. So we have easy to justify text, nicely wrapped text, and nicely justified pictures, but showing of the code would have to be done with pictures.
To set all text to justified copy the following code into the section of your blog post. If you want all text rendered like in a book with an even right edge you can use a single style rule. To set all text to justified copy the following code into the beginning of your post right after leading "all the above text was copied1 and pasted just checking out the use of justify with the use of pull left and pull right to see how it looks/works. So far I think it is working pretty well. Okay I wanted to see how a new paragraph start would look also, so here we go.

          Warning the next sentence is a long, long run on one, (what can I say, I'm not a writer and tend to type the way I talk I guess, or think, who knows). So I had to scroll and scroll way back in my post to find my first picture to use, ( I could not scroll back far enough so I had to re-upload it, so I made it smaller this time) it is one of my favorites that I have ever taken, and I still hope to make it out there and get another picture only with my new camera, and not just with my smartphone, although it did come out pretty dang nice.

So that is two pictures one to the left one to the right and justified text. The picture to the right is one of mine also that I played with for a contest entry/game I have been participating in. So it would seem I need to continue doing a lot more tying to see if the total effect is going to work and how easy it is to break away from it all. maybe I will try to add some phishy text in here to see what it looks like.
So here goes the phishy text it should be red, but to get it to turn red I need to end the phishy code, so lets do it.
Now did that turn it red and end the red? And the answer is yes it did. Okay the last few times I tried to bounce between red and black it did not work to well will it now?
So lets see did we drop down a line or continue in line for the red/black/red look?
Time to check the preview, and see what happened. Well I am surprised it did turn it red, and did not drop to a new line with an invisible line break. So to show the code, I could not show at the top I had to end the < div > codes. So you can see the code below.

          Anyhow, I just felt like sharing that with you all, and well I guess I wanted to do some typing, because I could have made this so so much shorter, but hey, someone might be bored enough to read it, if nothing else to see how the code pieces can all fit together in a sort of nice way.


Code snippets:

  1. <div class=text"justify> This gives that nice justified edges.
  2. <div class="pull-left">Put a picture on the left side.
  3. <div class ="pull-right">Put a picture to the right side.
  4. <div class="phishy"> This gives that nice
    red font color
  5. &lt;div class="text-justify"&gt; - - <div class="text-justify">
Edited for comment addition
  1. <sub>Small text on bottom of line</sub> Small text on bottom of line
  2. <sup>Small text at top of line</sup> Small text at top of line


Sources:

1From @primus post How to use....


This post protected by @dustsweeper

Got questions, just ask. I do not bite.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

You can also do > and < with &gt; and &lt; (And to put them in the post & with &amp;). So <div class="text-justify">

How did you do the paragraph indenting?

          The paragraph indent is the blank space code &nbsp;, you string 5 of them along to get an indent &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Okay need to play with that part and figure it out. It was hard to figure out how to show code in between <div>calls,

I just learned this one the other day when someone asked me how to tab (indent) text in their article.

@bashadow You are awesome! Thank you for this post. I was completely new to markdown (markup?) when I started on steemit a little over a month ago. This is an incredible resource! I've looked all over the place for code beyond the super basic stuff in the Markdown Styling Guide. I found it! You made it!! :-)

When I find a new piece I try to remember it, but my memory is not so great anymore, so i write it down, and figure I amy as well post about it to. The <div> codes get complicated to use and require a lot of futzing and coaxing on my part sometimes to make it work right, it's the web, not as easy and clean as HTML 3.0

I'm pretty happy just to be learning snippets of code. It's fun. :-)

That is such a wonderful photograph @bashadow!
I'm glad you reuse it! ❤ Great info! Resteeming! 💨

Thank you, it is one of my favorites, i kind of like the purple chem sky one too. And thanks for the resteem, no need to keep things secret and hidden form people.

🐱 Cats outta the bag now! 🐾 lol

I have never used justified alignment before. Maybe I should try it out in conjunction with the pull picture codes.

I think I should bookmark this.

It gets hard finding the not so often used HTML parts that are allowed to be used. I better do my own bookmark also, I have a hard time scrolling back more than two months on my post.

It's still beta, etc. or whatever excuses people are giving it.

Where's that first pic from? I gotta know. :o

That's my favorite picture that I took. It is a small roadside lake in Alaska just north of Tern Lake at the intersection of for deciding to go to Seward (south) or to Anchorage (north). I don't pay much attention to Hwy numbers I think it is Hwy 1 and Hwy 9 intersection. (had to look it up) Google map shows it as being "Jerome Lake"

Man, I really wish I could travel. I'd love to see places like this. Beautiful places make everyone's life happier.

In the meantime, you can always travel vicariously through others. :-)

Yea. It's nothing like being there, though. :p

I have two questions. I'm confused as to what justifying of the text is. As in what difference does that make to the visual text? Also, how do you do the little text, like you have in the 'post protected' footnote?

I added both of the small text samples above, I should have thought to include them. I have not figured out how to go from text justified to text unjustified, I will keep trying though. I will try to show the difference in comments.


          Here is the difference between the justified paragraphs above and one that is not justified. the paragraphs above have all of the sentence justified to the right and to the left, they do not have a wavy style at the drop to the next line in the paragraph. I need to type a little bit more for it to be easily visible and seen.@minismallholding had the question "I'm confused as to what justifying of the text is. As in what difference does that make to the visual text?" and also about the small text. This paragraph should be long enough now to illustrate what the difference in look is

So like a book, I get it now! Thank you. Thank you for the small text info too.

Now that same comment without the text justified.


          Here is the difference between the justified paragraphs above and one that is not justified. the paragraphs above have all of the sentence justified to the right and to the left, they do not have a wavy style at the drop to the next line in the paragraph. I need to type a little bit more for it to be easily visible and seen.@minismallholding had the question "I'm confused as to what justifying of the text is. As in what difference does that make to the visual text?" and also about the small text. This paragraph should be long enough now to illustrate what the difference in look is.

I have always wondered about the red text now I know how to get it into my posts. 😂 thanks. I have the justify text and pictures code but I rarely use them because it's a while lot of work.

this is really neat, @bashadow !!! imma definitely be using these to make my posts easier to read for others :D :D thank you so much~

I like finding all the little pieces of html or markdown that will work. I do wish they would add more, but maybe in the future.

Well done @bashadow! You successfully guessed the match result.

Group Phase - Serbia vs Brazil
Click on the badge to view your Board of Honor.
Do you want to know your current ranking? Read this post

Do not miss the last post from @steemitboard!


Do you like the SteemitBoard World Cup Contest?
Vote for @steemitboard as a witness and get one more award!