Currently, I am utilizing flex on divs that contain meta data in the header of my product page. The great thing about flex is its ability to adapt to the content rather than constrain it.
Below is my existing code...
<div class="h6 d-flex" id="product_meta">
<div class="order-sm-0 order-1" style="background:red;">
Some categories - tags - etc
</div>
<div class="ml-sm-auto text-sm-right order-sm-1 order-0 mb-sm-0 mb-1" style="background:cyan;">
SKU #000000 - From £2.55
</div>
</div>
To view a full demo, click here: https://www.codeply.com/go/PKYh4oHvTC
In my screenshot below under "Small Screen" and up mode, I use ml-sm-auto
to push the right meta away from the left meta, allowing content to fluidly adjust based on capacity.
If you encounter any issues or have suggestions, please let me know! Your feedback is highly appreciated.