Making posts which contain two columns. / Vefassen zweispaltiger Artikel.steemCreated with Sketch.

in #html7 years ago (edited)

English

Again and again I have been asked how to write articles which consist of two or more columns. Thus I am explaining it again and again (and I am happy to contribute a little bit to the success of the community by doing so).
The last person who asked me was @liliana.duarte who suggested to write a little article about it - and here it finally is. :)

Two or more columns can be inserted by utilizing HTML-tables, which look like this:

  • A table begins with <table> and ends with </table>.
  • Every row begins with <tr> and ends with </tr>.
  • Every column begins with <td> and ends with </td>.

That's it. :)

In case you are interested, here are a few other HTML tags which I also use rather often:

  • A paragraph begins with <p> and ends with </p>.
  • You can force to begin with a new line by adding <br>.
  • A horizontal line is inserted by the tag <hr>.
  • To center text just use <center> ... </center>.
  • To create titles in bigger letters use <h1> ... </h1>. (By using h2, h3, h4, ... instead, you can create titles in somewhat smaller letters.)
  • You can write text bold by using <strong> ... </strong> (or also <b> ... </b>).
  • You can write text italic by using <em> ... </em>.

Of course these are just very few examples for possible html tags. You can find more formatting options here.

I prefer to use the "Raw HTML" editor when writing Steemit articles, but also the 'markdown' editor recognizes HTML.

Have fun practicing the above! :)

Deutsch

Wieder und wieder werde ich gefragt, wie man zwei- oder mehrspaltige Artikel verfasst - wieder und wieder erkläre ich es (wobei es mir durchaus Freude macht, damit ein kleines bisschen zum Erfolg der Community beitragen zu können).
Zuletzt wurde ich von @liliana.duarte danach gefragt, die mir vorschlug, doch einen kleinen Artikel darüber zu schreiben - der nun endlich hier erscheint. :)

Zwei oder mehr Spalten können mit Hilfe von HTML-Tabellen eingefügt werden, die folgendermaßen strukturiert sind:

  • Eine Tabelle beginnt mit <table> und endet mit </table>.
  • Jede Zeile beginnt mit <tr> und endet mit </tr>.
  • Jede Spalte beginnt mit <td> und endet mit </td>.

Das ist alles! :)

Falls ihr euch für andere HTML-Tags interessiert, die ich des Öfteren nutze, hier eine kleine Auswahl:

  • Ein Absatz beginnt mit <p> und endet mit </p>.
  • Man kann einen Zeilenumbruch durch den HTML-Tag <br> erzwingen.
  • Eine horizontale Linie wird durch den HTML-Tag <hr> eingefügt.
  • Um Text zu zentrieren wird <center> ... </center> benutzt.
  • Um Überschriften in größerer Schrift darzustellen, wird <h1> ... </h1> verwendet. (h2, h3, h4, ... erzeugen etwas kleinere Schriftgrößen.)
  • Die Tags <strong> ... </strong> (or also <b> ... </b>) erzeugen Fettschrift.
  • Die Tags <em> ... </em> erzeugen Kursivschrift.

Das sind natürlich nur einige wenige Formatierungsoptionen. Weitere Möglichkeiten finden sich here.

Ich selbst bevorzuge für meine Steemit-Artikel den "Raw HTML"-Editor, aber auch der 'markdown'-Editor erkennt HTML-Befehle.

Viel Spaß beim Ausprobieren! :)

Sort:  

@jaki01 got you a $1.57 @minnowbooster upgoat, nice!
@jaki01 got you a $1.57 @minnowbooster upgoat, nice! (Image: pixabay.com)


Want a boost? Click here to read more!

Wenn du deinen Artikel über den Link öffnest oder F5 drückst, während das Popup angezeigt wird, wird es ganz anders dargestellt. Bei der Prüfung deines Codes habe ich gesehen, dass du einige <p> Elemente schließt, aber nicht öffnest, daher könnte das Problem kommen ;)

Ansonsten eine gute Hilfe für die HTML-Einsteiger :)


Zum Schnellen finden solcher Sachen würde ich dir https://validator.w3.org empfehlen!

Danke - hab jetzt mal manuell durchgeschaut, müsste eigentlich jetzt alles in Ordnung sein.

Das ist halt ein ziemliches Gefriemel, da der Artikel HTML-Tags (Quelltext) anzeigen soll, ohne dass sie eine formatierende Wirkung haben (andere Tags sollen aber tatsächlich formatieren). Dazu kommt, dass ich vom Urlaubsaufenthaltsort mit sehr langsamer Internetverbindung eingeloggt bin, so dass auch Aktualisierungen nur langsam geladen und angezeigt werden ...

Jo, sieht jetzt in Ordnung aus :) Ich kann das verstehen, habe in meinem letzten Artikel auch ziemlich zu kämpfen gehabt, um das so perfekt hinzukriegen, wie es jetzt aussieht. Hatte am Ende des kürzeren Textes ein paar <br> eingefügt, damit der Text nach oben rutscht und in gleicher Höhe wie die linke Spalte angezeigt wird. Echt ein Kampf mit diesem Editor.

Der 'Validator' meckert übrigens immer noch, aber ich habe jetzt nicht genug Zeit (und bin einfach mal stur der Meinung, jedes p auch geschlossen zu haben, obwohl Software ja bekanntlich immer Recht hat und 'Biobrains' wie ich sich immer irren, haha). Danke noch mal für deinen Hinweis! :)

Ja zu Ernst sollte man den Validator auch nicht nehmen. Der ist ziemlich streng und meckert wegen jeder Kleinigkeit. Die meisten Fehler dort sind von der Steemit-Seite selbst :)

These are the formattings I have been looking for, where have you been all my Steemit life @jaki01, btw appreciate it, this is a BIG help. Cheers!

Great and helpful post, particularly with the example of a very good reason to use two columns.

I'm outta VP atm, but will resteem as a token of my esteem =)

Edit: one of the complications of posting in two languages is links. I don't speak German, so the link to the HTML primer was less useful to me than an English language link. Clearly, there is more involved to posting multiple languages than just translating text, and that is a pretty good example of the kinds of additional considerations that apply.

Thanks again!

Thanks, I will just add another link (actually my wrong memory told me that SELFHTML was written in English language). :)

Wow..another nice post with very good aricle from @jaki01
Your post includes very useful to me...

  1. Your presentation and written skill is execellent my dearvfriend
  2. I think you have more creative ideas..
  3. Your html tips and tricks very useful to all steemians..
  4. Thank you so much sharing your valuble knowledge with us..
  5. I always aporecuate your every posts..wel done my dear friend @jaki01

Upvoted abd resteemed with my followers
Hapoy steeming..keep it up post..
Cheers!..

Thanks! :)

Great! Now I can share your post to whom asked me!!
I will resteem it tomorrow or after for more visibility :)

Can you tell me how to upload images side to a paragraph or adjacent to each other. I really wonder how to doit.

Just upload the image in one column of a table row and write the text within the other column of the same row.

ok, thanx for you reply.

Great html information..
upvote and resteem

Dankeschön für die tips! Muss auch endlich mal umsteigen... kenn mich leider nur nicht sooo gut aus! :/ Habs mal abgespeichert :)

Oh wow, danke für den hilfreichen Post und die super Erklärung! Werde das sicher mal in meinen Posts anwenden. Thank you!

Coin Marketplace

STEEM 0.20
TRX 0.14
JST 0.030
BTC 63718.61
ETH 3390.60
USDT 1.00
SBD 2.62