7

The word "Psychotherapeutic" shows up like this on my friends phone for the website I made for them.

The root of the problem is that the word is longer than the screen width. Is decreasing font size the only way to solve this across devices?

top 11 comments
sorted by: hot top new old
[-] shnizmuffin@lemmy.inbutts.lol 8 points 6 hours ago

You want the special soft-hyphen ­ symbol for this specific case.

Psycho­therapeutic

[-] Seimhe@lemmy.world 3 points 2 hours ago

I didn't even know this existed. Thanks, that's great!

[-] mad_lentil@lemmy.ca 1 points 6 hours ago

Wow I can't believe there's already something in html just for this. This one's really good to know—kind of an anti- 

[-] shnizmuffin@lemmy.inbutts.lol 3 points 5 hours ago

I think the opposite of the nonbreaking space is ‌, zero-width non-joiner.

[-] mad_lentil@lemmy.ca 1 points 5 hours ago

I thought I had a pretty good grasp of these, but you're blowing my mind. I love html

[-] nykula@piefed.social 3 points 5 hours ago

Others wrote good advice. Still, I'd decrease the heading font size as well, on extra-small screens at least.

[-] Seimhe@lemmy.world 2 points 2 hours ago

Yes, I've done this too since there will be many more pages created in future by people who don't know HTML codes or CSS. Thanks.

[-] reddig33@lemmy.world 2 points 3 hours ago

Through CSS I’m guessing? Something that dynamically resizes the type as the window shrinks/grows?

[-] Seimhe@lemmy.world 3 points 2 hours ago

Yes. I used this:

@media screen and (max-width: 375px) {
    h1 {
        font-size: 28px !important;
    }
}
[-] 7EP6vuI@feddit.org 5 points 6 hours ago
[-] Seimhe@lemmy.world 2 points 2 hours ago

Noted, thank you.

this post was submitted on 28 Nov 2026
7 points (100.0% liked)

Web Development

5985 readers
94 users here now

Welcome to the web development community! This is a place to post, discuss, get help about, etc. anything related to web development

What is web development?

Web development is the process of creating websites or web applications

Rules/Guidelines

Related Communities

Wormhole

Some webdev blogsNot sure what to post in here? Want some web development related things to read?

Heres a couple blogs that have web development related content

CreditsIcon base by Delapouite under CC BY 3.0 with modifications to add a gradient

founded 3 years ago
MODERATORS