https://i.sstatic.net/bGTXG.jpg
https://i.sstatic.net/4Vh1k.jpg
Having some difficulties displaying JSON data in a grid layout with React. Facing the following challenges:
- Uneven spacing due to less margin on the left side. Attempts to align horizontally have not been successful. How can this be fixed?
- On mobile devices like the iPhone X, products are aligned to the left. Is setting margin-left a viable solution for mobile view alignment?
- Increment and decrement buttons are not horizontally aligned. Would setting a min-height to the "P" element below solve this?
- How can the GitHub page be accessed via a link? Here is the GitHub link: https://github.com/rahman23/shoppingdemo.github.io
- Seeking advice or suggestions for improvements
For the full code, please refer to the snippets below:
(React component code)
And the CSS code:
(CSS stylesheet code)