How to align AntDesign Timeline to the left

I want to have some text on both sides of the timeline from the AntDesign … Read more How to align AntDesign Timeline to the left

I want to have some text on both sides of the timeline from the AntDesign library.

But I also don’t won’t it to be centered in the middle of the page. I’m using this code as seen below:

<Timeline mode="left">
  <Timeline.Item label="Date 1">Test</Timeline.Item>
  <Timeline.Item label="Date 2">Some information</Timeline.Item>
  <Timeline.Item label="Date 3">More information</Timeline.Item>
</Timeline>

Playground sample: https://codesandbox.io/s/select-with-search-field-antd-4-16-12-forked-n4c5i?file=/index.js

I’m open to any solution. Some CSS would be great, but I don’t want to specify the width of my timeline as it should use whatever size it’s needed.

Source: CSS – Stack Overflow


Categories: NewsTags: , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *