Skip to content

I want text to wrap around curved borders #751

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
WebWeWantBot opened this issue May 2, 2025 · 1 comment
Open

I want text to wrap around curved borders #751

WebWeWantBot opened this issue May 2, 2025 · 1 comment
Labels
want Incoming requests from the community

Comments

@WebWeWantBot
Copy link
Collaborator


title: I want text to wrap around curved borders
date: 2025-05-02T01:00:21.038Z
submitter: PRIVATE
number: 681419258d5473007ee1a5cc
tags: [ ]
discussion: https://github.com/WebWeWant/webwewant.fyi/discussions/
status: [ discussing || in-progress || complete ]
related:

  • title:
    url:
    type: [ article || explainer || draft || spec || note || discussion ]

You can make a div circular with 100% border-radius. But the text inside that div is not aware of the border-radius and continues to be a rectangle. Shaping text into a circle form requires two shape-outside elements, because there is no shape-inside OR built-in ability for text to respond to the actual shape of the div it's in. This is a real pain. What's the point of being able to make odd-shaped divs if you can't actually put anything inside of them?


If posted, this will appear at https://webwewant.fyi/wants/681419258d5473007ee1a5cc/

@WebWeWantBot WebWeWantBot added the want Incoming requests from the community label May 2, 2025
@bradisbell
Copy link

What you're looking for is easily handled by SVG and <textPath>.

https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/textPath

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
want Incoming requests from the community
Projects
None yet
Development

No branches or pull requests

2 participants