added display-inline to rectangles.