I am designing a website using Oscommerce 2.4.3. Bootstrap.
On the products page my desired layout is the product image on the left and the product details in a list format on the right.
| IMAGE | Colour: Red |
| | Weight: 1kg |
| | size: 1M |
| | model: xyz |
It is important to me that the details in the product details are aligned with each other, i.e. NOT:
Colour: Red
Weight: 1kg
size:1M
model: xyz
I am new to Bootstrap and seeking some guidance on the best way to achieve this.
The approach I took initially was to put the image in one column, the product details in another and nest 2 columns within that column. This worked for those product details which were above the bottom of the image, however anything which was lower than the bottom of the image, then got pushed all the way to the left hand side i.e under the image.
The approach then I took subsequently was to put the image in one column, and in another column create a list group. I had to specify the width in the columns so that they could remain aligned in a 2x2 format rather than revert to the size of their contents e.g.
<li class="list-group-item borderless col-sm-4"> Colour </Li>
<li class="list-group-item borderless col-sm-8"> Red </Li>
<li class="list-group-item borderless col-sm-8"> Weight </Li>
<li class="list-group-item borderless col-sm-8"> 1kg </Li>
This approach works and looks fine when viewing the site through a dekstop computer. However when resizing the screen or viewing the page through a mobile, the column containing the list refuses the stack underneath the image.
My questions are:
- Any general guidance on best way to achieve the format above:
- Any reason why the lists would not stack underneath the image and what I could do to resolve.
I am grateful to anyone who can point me in the right direction.