How to make the text as numbered 1 using HTML / CSS / PHP?

I only get 2 option

Format

  • one
    text-align: right for the second line - faksel
  • Thanks to everyone for their help - kochereshka

2 answers 2

Flex solution

div{ display: inline-flex; flex-direction: column; align-items: flex-end; } 
 <div> <span>abc - [AA] abc</span> <span>[BB] abc</span> </div> 

    Solution via table

     <table> <tr> <td>abc - </td> <td>[AA] abc</td> </tr> <tr> <td></td> <td>[BB] abc</td> </tr> </table>