Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

responsive #28

Open
alirezahmz opened this issue Jan 20, 2021 · 2 comments
Open

responsive #28

alirezahmz opened this issue Jan 20, 2021 · 2 comments

Comments

@alirezahmz
Copy link

how can i responsive?

@kimcoder
Copy link
Owner

Hi @alirezahm7
Try to modify width, number props
Thanks

@leGenti
Copy link

leGenti commented Oct 19, 2021

how can i responsive?

Hi @alirezahm7,

I made it responsive by making a div which has position relative and and i gave the SimpleImageSlider an absolute position => style={{position: 'absolute', top: '0', right: '0'}}. The width and the height are 100%. Make a const ImageSliderStyle = { width: '100%', height: '100%'} and use these keys in your SimpleImageSlider like this: width={ImageSliderStyle.width} and height={ImageSliderStyle.height}.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants