· javascript
Creating Diagrams and Graphs Using Modern CSS
After two detailed articles (that I hope you read!), we have a great technique to connect two elements with a line you can shape using border-shape and shape().
In this article, we will explore more types of connections commonly used to create graphs and diagrams. Of course, we can’t cover them all, but the technique is generic, so if you understand it well, you can easily tweak the code to create your own connections. Article Series - Two Circles, One Arrow, and Anchor Positioning - Two Circles, One Connection, and border-shape - Creating Diagrams and Graphs Using Modern CSS Before we start, let me remind you that the goal is not to invent a new or better way to create graphs with CSS.
This remains an experiment to explore modern features and create things that were impossible (or very difficult) to achieve using only CSS. This can also serve as proof of concept that it’s indeed possible using CSS. If so, it can lead to a better, more intuitive implementation.



