Hyphens via CSS

I want to add hyphens:auto (hyphens - CSS | MDN) to my CSS. The HTML language attribute is needed. Can I add this to any parent element or is <html lang="de"> necessary?


You can just wrap your fields in a <div lang=...> </div> in your card template

1 Like

@ferophila Is this solution working for you?
Because I am looking for the exact same and still seem to have issues with it. Do you have any word-break or word-wrap/overflow-wrap properties set as well?

alright, turns out it is a AnkiDesktop/QtWebengine 5.15 issue for me. This solution works on MacOS and Android.