Terence Eden on Nostr: Hey, #CSS nerds, how do I align variable length lines so one word is in the same ...
Hey, #CSS nerds, how do I align variable length lines so one word is in the same horizontal position?
Eg.
```
Try RICE today
Delicious RICE cooked here
Got RICE?
RICE is nice!
```
I want the RICE to be aligned.
Would be easy with a monospace font, but I need to use variable width.
Any clever thoughts?
Published at
2023-05-26 15:59:49Event JSON
{
"id": "3ff9ff9e9487e887eec18987004b83bc97f7401b9ae32969737a49881fd742a4",
"pubkey": "fddf487eea9db57a6e320f80e5cb63de50bedf539695a41c0d447be6c23643e1",
"created_at": 1685116789,
"kind": 1,
"tags": [
[
"t",
"css"
],
[
"mostr",
"https://mastodon.social/users/Edent/statuses/110435813929142346"
]
],
"content": "Hey, #CSS nerds, how do I align variable length lines so one word is in the same horizontal position?\n\nEg.\n\n```\n Try RICE today\nDelicious RICE cooked here\n Got RICE?\n RICE is nice!\n```\nI want the RICE to be aligned.\n\nWould be easy with a monospace font, but I need to use variable width.\n\nAny clever thoughts?",
"sig": "7206fb9d2258049c1d71f1ff277fc3a36706e9987fd7c5182eec94381c541344a34dd9e307cad92eda46e12bb41fad33a16252d306d066ffef3d04b98c43aea5"
}