As a beginner in working with Bootstrap, I am currently focused on creating an index html page for an online shop. For reference, here is an example - https://jsfiddle.net/a393wtng/1/ Upon resizing the output frame, it becomes apparent that 4 products can be accommodated in each 'row'
I intend to introduce margin spacing
margin-left:7px;
margin-right:7px;
to every product (lines 24, 25) within the css file. However, doing so results in only 3 products being displayed in each 'row'. I experimented with reducing the image size slightly to decrease the product width, yet this led to unexpected outcomes: identical product widths and left alignment of internal elements -
Therefore, I have three inquiries:
- How can margin-left and right be added to the product while maintaining 4 products per 'row'?
- What steps can be taken to prevent "padding-left" when modifying the image size?
- I would greatly appreciate any suggestions pertaining to the html/css/bootstrap code.