<!DOCTYPE html> <html> <head> <style> #d:after { content: 'a'; } #d:first-letter { float: right; } </style> </head> <body> <div id="d"></div> </body> </html>