I want to achieve this effect:
I have a panel that’s wide (its width is dynamic based on its content)
- if the page is wider than the panel, I want it to be just displayed in the center of the page
- if the page is narrower than the panel (ex. on a phone), I want the panel (not the whole page) to be scrollable.
I know it’s not an easy thing to do because nothing is fixed in this scenario, but I know it must be possible and I’m just missing something.
I’d greatly appreciate any help!
(For reference, a picture of what I want to achieve)
2
Answers
You can do it with a height static. Well, I dont know other form
View