Flexible CSS diagram