5

I have a quote:

"Like this."

I want to place its source signature on the right side of the post.

I have tried <span style="text-align:right;"> -The Author </span>, but that does not work. How can I achieve this?

4
  • Not sure, but probably RtL marker could do it (not that I endorsed this, though)
    – Andrew T.
    Mar 24, 2016 at 5:01
  • 4
    You don't. Markdown as used on Stack Overflow has very limited formatting capabilities. In my personal opinion that's a feature :-) Mar 24, 2016 at 6:52
  • @Carpetsmoker I did add the 'feature-request' tag on the post; thanks for the comment.
    – L777
    Mar 24, 2016 at 6:58
  • Related Answer or Q/A
    – Cadoiz
    Sep 19, 2021 at 11:52

2 Answers 2

7

The only element that currently supports specifying text alignment is a table, with the use of the : character in the separator row to indicate alignment direction.

As a header row is currently required, the simplest forms of a table with right-aligned text would look like:

|table with header only|
|-:|
table with header only

Or:

||
|-:|
|table with a single row|
table with a single row
2

I don't think it's important to have this in Stack Overflow. You can simply mention the author before or after the quote, without having their name on the right. For example:


I'm quoting sitename:

Like this

Another (alternative is using code-block formation instead of quoting:

Like this
             - sitename


However, if you insist to do that (I don't like this solution, but it's the best I can think of), you can add the EM SPACE (&emsp;) character (one character = one space):

I'm Maroun
       - Maroun Maroun

I'm not HTML expert, I don't know how this will be handled by different browsers/devices, so I'm not sure if it's a good way of adding a space when having limited formatting capabilities

5
  • 5
    Don't ever use code blocks for quotes. Only use code blocks for code.
    – Cerbrus
    Mar 24, 2016 at 7:57
  • Interesting workaround with the code-block; it looks very similar on here (meta) however on stackoverflow it wouldn't look like an external reference quote (which is yellow);
    – L777
    Mar 24, 2016 at 7:57
  • @Cerbrus Apart from being ugly (and I agree it is), why shouldn't it be used?
    – Maroun
    Mar 24, 2016 at 7:59
  • 4
    It's semantically incorrect and it hurts readability.
    – Cerbrus
    Mar 24, 2016 at 8:01
  • @Cerbrus True. Edited.
    – Maroun
    Mar 24, 2016 at 8:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .