stephane-monnot / react-vertical-timeline

Vertical timeline for React.js

Home Page:https://stephane-monnot.github.io/react-vertical-timeline/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to customize width of the element

EvgenKozoriz opened this issue · comments

I have a problem with word wrapping when I have no many symbols or I don't know what
I have 2 same code components
I have a nice width
the second one has problems with margins and width of the component
I tried to add width but it broke all
I tried to add no-wrap to the text but the text was outside the component
image psd
image psd (1)

I'll be happy for helping)

Try adding width in the parent of the vertical timeline component. Here is an example in tailwind:

<section className="w-full">
      <VerticalTimeline>
      </VerticalTimeline>
</section>