Read more

CSS: Letting text flow around a round element

Dominik Schöler
January 10, 2024Software engineer at makandra GmbH

If you have an element with significant border-radius (e.g. 50% for a circle) and you want inline content (i.e. text) to flow around it, do it like this:

  --margin: 10px;
  shape-outside: content-box;
  margin-left: var(--margin);
  margin-bottom: var(--margin);
  shape-margin: var(--margin);
Illustration web development

Do you need DevOps-experts?

Your development team has a full backlog? No time for infrastructure architecture? Our DevOps team is ready to support you!

  • We build reliable cloud solutions with Infrastructure as code
  • We are experts in security, Linux and databases
  • We support your dev team to perform
Read more Show archive.org snapshot

Image

Posted by Dominik Schöler to makandra dev (2024-01-10 13:21)