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?

you are viewing a single comment's thread
view the rest of the comments
[-] 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 3 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 3 hours ago

Yes. I used this:

@media screen and (max-width: 375px) {
    h1 {
        font-size: 28px !important;
    }
}
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